Re: [PATCH] add xbox subarchitecture

Matthew Wilcox (willy@debian.org)
Thu, 10 Jul 2003 20:37:51 +0100


> diff -Nru a/include/asm-i386/timex.h b/include/asm-i386/timex.h
> --- a/include/asm-i386/timex.h Thu Jul 10 18:07:08 2003
> +++ b/include/asm-i386/timex.h Thu Jul 10 18:07:08 2003
> @@ -15,7 +15,11 @@
> #ifdef CONFIG_MELAN
> # define CLOCK_TICK_RATE 1189200 /* AMD Elan has different frequency! */
> #else
> -# define CLOCK_TICK_RATE 1193182 /* Underlying HZ */
> +# ifdef CONFIG_X86_XBOX
> +# define CLOCK_TICK_RATE 1124998 /* so has the Xbox */
> +# else
> +# define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
> +# endif
> #endif
> #endif

How about more simply:

#ifdef CONFIG_MELAN
# define CLOCK_TICK_RATE 1189200 /* AMD Elan has different frequency! */
+#elif defined(CONFIG_X86_XBOX)
+# define CLOCK_TICK_RATE 1124998 /* so has the Xbox */
#else
# define CLOCK_TICK_RATE 1193182 /* Underlying HZ */
#endif

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
-
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/