浏览代码

x86: get_cycles() fix

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Ingo Molnar 17 年之前
父节点
当前提交
75f2ce0331
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      include/asm-x86/tsc.h

+ 1 - 3
include/asm-x86/tsc.h

@@ -27,10 +27,8 @@ static inline cycles_t get_cycles(void)
 	if (!cpu_has_tsc)
 	if (!cpu_has_tsc)
 		return 0;
 		return 0;
 #endif
 #endif
-
-#if defined(CONFIG_X86_GENERIC) || defined(CONFIG_X86_TSC)
 	rdtscll(ret);
 	rdtscll(ret);
-#endif
+
 	return ret;
 	return ret;
 }
 }