]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/blackfin/include/asm/time.h
Blackfin: add support for cpufreq on SMP systems
[net-next-2.6.git] / arch / blackfin / include / asm / time.h
index 767b938ccf8c8a863b74e99d46005e0c6c6fa982..9ca7db844d1075d56a2b4e4ba33d14cb1c631433 100644 (file)
@@ -23,9 +23,7 @@
  */
 
 #ifndef CONFIG_CPU_FREQ
-#define TIME_SCALE 1
-#define __bfin_cycles_off (0)
-#define __bfin_cycles_mod (0)
+# define TIME_SCALE 1
 #else
 /*
  * Blackfin CPU frequency scaling supports max Core Clock 1, 1/2 and 1/4 .
  * adjust the Core Timer Presale Register. This way we don't lose time.
  */
 #define TIME_SCALE 4
+
+# ifdef CONFIG_CYCLES_CLOCKSOURCE
 extern unsigned long long __bfin_cycles_off;
 extern unsigned int __bfin_cycles_mod;
+# endif
 #endif
 
 #if defined(CONFIG_TICKSOURCE_CORETMR)