|
|
Log in / Subscribe / Register

xbox: add Xbox hz in timex.h

From:  "Ed Schouten" <ed@il.fontys.nl>
To:  linux-kernel@vger.kernel.org
Subject:  [Patch 5/5] xbox: add Xbox hz in timex.h
Date:  Sat, 9 Oct 2004 22:05:55 +0200 (CEST)
Cc:  akpm@osdl.org

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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Copyright © 2004, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds