summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/tsc.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2020-07-24 13:44:17 +0200
committerIngo Molnar <mingo@kernel.org>2020-07-25 12:00:57 +0200
commit161449bad5053d66f2310744ba8498158ab12c89 (patch)
tree55864aeee1d24b8430c1934465f5acd920a2f6ac /arch/x86/include/asm/tsc.h
parent8cd591aeb1d650f79a49d8704c35a78bf18f5de9 (diff)
downloadlinux-stable-161449bad5053d66f2310744ba8498158ab12c89.tar.gz
linux-stable-161449bad5053d66f2310744ba8498158ab12c89.tar.bz2
linux-stable-161449bad5053d66f2310744ba8498158ab12c89.zip
x86/tsc: Remove unused "US_SCALE" and "NS_SCALE" leftover macros
Last use of them was removed 13 years ago, when the code was converted to use CYC2NS_SCALE_FACTOR: 53d517cdbaac: ("x86: scale cyc_2_nsec according to CPU frequency") The current TSC code uses the 'struct cyc2ns_data' scaling abstraction, the old fixed scaling approach is long gone. This cleanup also removes the 'arbitralrily' typo from the comment, so win-win. ;-) Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20200724114418.629021-3-mingo@kernel.org
Diffstat (limited to 'arch/x86/include/asm/tsc.h')
-rw-r--r--arch/x86/include/asm/tsc.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/include/asm/tsc.h b/arch/x86/include/asm/tsc.h
index 8a0c25c6bf09..b7b2624fba86 100644
--- a/arch/x86/include/asm/tsc.h
+++ b/arch/x86/include/asm/tsc.h
@@ -7,9 +7,6 @@
#include <asm/processor.h>
-#define NS_SCALE 10 /* 2^10, carefully chosen */
-#define US_SCALE 32 /* 2^32, arbitralrily chosen */
-
/*
* Standard way to access the cycle counter.
*/