kernel/arch/x86/include/asm/timex.h
.. .. @@ -5,6 +5,15 @@ 5 5 #include <asm/processor.h> 6 6 #include <asm/tsc.h> 7 7 8 +static inline unsigned long random_get_entropy(void)9 +{10 + if (!IS_ENABLED(CONFIG_X86_TSC) &&11 + !cpu_feature_enabled(X86_FEATURE_TSC))12 + return random_get_entropy_fallback();13 + return rdtsc();14 +}15 +#define random_get_entropy random_get_entropy16 +8 17 /* Assume we use the PIT time source for the clock tick */ 9 18 #define CLOCK_TICK_RATE PIT_TICK_RATE 10 19