hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
kernel/arch/x86/kernel/tsc_sync.c
....@@ -367,6 +367,8 @@
367367 atomic_set(&test_runs, 1);
368368 else
369369 atomic_set(&test_runs, 3);
370
+
371
+ hard_cond_local_irq_disable();
370372 retry:
371373 /*
372374 * Wait for the target to start or to skip the test:
....@@ -448,6 +450,8 @@
448450 if (unsynchronized_tsc())
449451 return;
450452
453
+ hard_cond_local_irq_disable();
454
+
451455 /*
452456 * Store, verify and sanitize the TSC adjust register. If
453457 * successful skip the test.