2004-10-09 20:08:54

by Ed Schouten

[permalink] [raw]
Subject: [Patch 5/5] xbox: add Xbox hz in timex.h

Microsoft Xbox has a different clock than a generic x86 or AMD Elan
machine. Therefore we need to add this frequency to timex.h.

You can also download this patch at:
http://linux.g-rave.nl/patches/patch-xbox-timex.diff
---

timex.h | 2 ++
1 files changed, 2 insertions(+)

diff -u -r --new-file linux-2.6.9-rc3/include/asm-i386/timex.h
linux-2.6.9-rc3-ed0/include/asm-i386/timex.h
--- linux-2.6.9-rc3/include/asm-i386/timex.h 2004-09-30 05:04:25.000000000
+0200
+++ linux-2.6.9-rc3-ed0/include/asm-i386/timex.h 2004-10-09
20:01:25.027610000 +0200
@@ -11,6 +11,8 @@

#ifdef CONFIG_X86_ELAN
# define CLOCK_TICK_RATE 1189200 /* AMD Elan has different frequency! */
+#elif CONFIG_X86_XBOX
+# define CLOCK_TICK_RATE 1125000 /* Microsoft Xbox */
#else
# define CLOCK_TICK_RATE 1193182 /* Underlying HZ */
#endif