* test 10 breaks on alpha
@ 2000-11-01 21:03 Mark Allen
0 siblings, 0 replies; 2+ messages in thread
From: Mark Allen @ 2000-11-01 21:03 UTC (permalink / raw)
To: linux-kernel
Here's the patch to make it compile. I haven't tested this yet, but
I will once I can actually get a chance to sit at the console...
--- SNIP ---
--- /usr/src/linux/include/asm-alpha/param.h.orig Wed Nov 1 12:31:56 2000
+++ /usr/src/linux/include/asm-alpha/param.h Wed Nov 1 12:33:22 2000
@@ -27,4 +27,8 @@
#define MAXHOSTNAMELEN 64 /* max length of hostname */
+#ifdef __KERNEL__
+# define CLOCKS_PER_SEC 1024 /* frequency at which times() counts */
+#endif
+
#endif /* _ASM_ALPHA_PARAM_H */
--
Mark Allen -- mallen@byte-me.org -- http://www.byte-me.org/~mallen/
PGP1: 0x5CDC2161 Mark Allen (Personal Key) <mallen@byte-me.org>
PGP2: 0x80402A46 Mark Allen (Work) <mallen@tuxtops.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: test 10 breaks on alpha
@ 2000-11-02 20:36 Luca Giuzzi
0 siblings, 0 replies; 2+ messages in thread
From: Luca Giuzzi @ 2000-11-02 20:36 UTC (permalink / raw)
To: linux-kernel, mallen
The clock on some alpha systems might be at 1200 Hz...
you've rather to use HZ:
--- /usr/src/linux/include/asm-alpha/param.h.orig Wed Nov 1 12:31:56
2000
+++ /usr/src/linux/include/asm-alpha/param.h Wed Nov 1 12:33:22 2000
@@ -27,4 +27,8 @@
#define MAXHOSTNAMELEN 64 /* max length of hostname */
+#ifdef __KERNEL__
+# define CLOCKS_PER_SEC HZ
+#endif
+
#endif /* _ASM_ALPHA_PARAM_H */
and, yes... this patch works, at least on a 500au I've got
2.4.0t10 running on.
[BTW: the 500au is a Miata, hence the frequency is 1024 Hz]
Cheers,
lg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-11-02 20:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-01 21:03 test 10 breaks on alpha Mark Allen
2000-11-02 20:36 Luca Giuzzi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®