x86/tsc: Sync test only for the first cpu in a package
If the TSC_ADJUST MSR is available all CPUs in a package are forced to the same value. So TSCs cannot be out of sync when the first CPU in the package was in sync. That allows to skip the sync test for all CPUs except the first starting CPU in a package. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Yinghai Lu <yinghai@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Link: http://lkml.kernel.org/r/20161119134017.809901363@linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Bu işleme şunda yer alıyor:
@@ -49,10 +49,10 @@ extern void check_tsc_sync_source(int cpu);
|
||||
extern void check_tsc_sync_target(void);
|
||||
|
||||
#ifdef CONFIG_X86_TSC
|
||||
extern void tsc_store_and_check_tsc_adjust(void);
|
||||
extern bool tsc_store_and_check_tsc_adjust(void);
|
||||
extern void tsc_verify_tsc_adjust(void);
|
||||
#else
|
||||
static inline void tsc_store_and_check_tsc_adjust(void) { }
|
||||
static inline bool tsc_store_and_check_tsc_adjust(void) { }
|
||||
static inline void tsc_verify_tsc_adjust(void) { }
|
||||
#endif
|
||||
|
||||
|
Yeni konuda referans
Bir kullanıcı engelle