Skip to content

Commit 161449b

Browse files
author
Ingo Molnar
committed
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: 53d517c: ("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 <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8cd591a commit 161449b

File tree

1 file changed

+0
-3
lines changed
  • arch/x86/include/asm

1 file changed

+0
-3
lines changed

arch/x86/include/asm/tsc.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77

88
#include <asm/processor.h>
99

10-
#define NS_SCALE 10 /* 2^10, carefully chosen */
11-
#define US_SCALE 32 /* 2^32, arbitralrily chosen */
12-
1310
/*
1411
* Standard way to access the cycle counter.
1512
*/

0 commit comments

Comments
 (0)