pass in smp_processor_id to identify the cpu in use

This commit is contained in:
Kip Macy 2009-02-05 04:00:55 +00:00
parent bd1c698cab
commit 2650d60534

View File

@ -352,7 +352,7 @@ getit(void)
local_time_version = shadow->version;
barrier();
time = shadow->system_timestamp + get_nsec_offset(shadow);
if (!time_values_up_to_date(cpu))
if (!time_values_up_to_date(smp_processor_id()))
__get_time_values_from_xen(/*cpu */);
barrier();
} while (local_time_version != shadow->version);