[lkml]   [2003]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[TRIVIAL] linux-2.5.57_x86-tsc-cleanup_A0
From:  john stultz <>

Linus, All,
Since no one complained about this over the weekend, here it is. This
patch simply removes one more of the remaining CONFIG_X86_TSC #ifdefs
(this one from get_cycles()). Instead of a compile time switch, it
switches on cpu_has_tsc.

Please apply.


--- trivial-2.5-bk/include/asm-i386/timex.h.orig 2003-02-06 16:30:27.000000000 +1100
+++ trivial-2.5-bk/include/asm-i386/timex.h 2003-02-06 16:30:27.000000000 +1100
@@ -40,14 +40,10 @@

static inline cycles_t get_cycles (void)
-#ifndef CONFIG_X86_TSC
- return 0;
- unsigned long long ret;
- rdtscll(ret);
+ unsigned long long ret = 0;
+ if(cpu_has_tsc)
+ rdtscll(ret);
return ret;

extern unsigned long cpu_khz;
Don't blame me: the Monkey is driving
File: john stultz <>: [PATCH][TRIVIAL] linux-2.5.57_x86-tsc-cleanup_A0
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2005-03-22 13:32    [W:0.022 / U:26.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site