x86/tsc.c: Add TSLOG to test_tsc
On my benchmark system this takes ~ 14 ms; enough to be worth recording in the boot time profile.
This commit is contained in:
parent
d780a23a99
commit
cd165c8bf0
@ -511,6 +511,7 @@ test_tsc(int adj_max_count)
|
||||
if (vm_guest == VM_GUEST_VBOX)
|
||||
return (0);
|
||||
|
||||
TSENTER();
|
||||
size = (mp_maxid + 1) * 3;
|
||||
data = malloc(sizeof(*data) * size * N, M_TEMP, M_WAITOK);
|
||||
adj = 0;
|
||||
@ -531,6 +532,7 @@ test_tsc(int adj_max_count)
|
||||
printf("SMP: %sed TSC synchronization test%s\n",
|
||||
smp_tsc ? "pass" : "fail",
|
||||
adj > 0 ? " after adjustment" : "");
|
||||
TSEXIT();
|
||||
if (smp_tsc && tsc_is_invariant) {
|
||||
switch (cpu_vendor_id) {
|
||||
case CPU_VENDOR_AMD:
|
||||
|
Loading…
Reference in New Issue
Block a user