lkml.org 
[lkml]   [2003]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] add xbox subarchitecture

> 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/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.031 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site