2000-11-08 13:02:06

by Jan-Benedict Glaw

[permalink] [raw]
Subject: [uPATCH] Again CLOCKS_PER_SEC on Alpha (maybe Sparc and PPC too)

Hi!

CLOCKS_PER_SEC is still missing:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mno-fp-regs -ffixed-8 -mcpu=ev4 -Wa,-mev6 -c -o binfmt_elf.o binfmt_elf.c
binfmt_elf.c: In function `create_elf_tables':
binfmt_elf.c:166: `CLOCKS_PER_SEC' undeclared (first use in this function)
binfmt_elf.c:166: (Each undeclared identifier is reported only once
binfmt_elf.c:166: for each function it appears in.)

Here's the old patch:

--- linux/include/asm-alpha/#param.h Wed Nov 1 14:11:11 2000
+++ linux/include/asm-alpha/param.h Wed Nov 1 14:54:59 2000
@@ -26,5 +26,9 @@
#endif

#define MAXHOSTNAMELEN 64 /* max length of hostname */
+
+#ifdef __KERNEL__
+# define CLOCKS_PER_SEC HZ /* frequency at which times() counts */
+#endif


--
Fehler eingestehen, Gr??e zeigen: Nehmt die Rechtschreibreform zur?ck!!!
/* Jan-Benedict Glaw <[email protected]> -- +49-177-5601720 */
keyID=0x8399E1BB fingerprint=250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB
"insmod vi.o and there we go..." (Alexander Viro on linux-kernel)


Attachments:
(No filename) (1.09 kB)
(No filename) (240.00 B)
Download all attachments