gettimeofday: avoid per-cpu data in calculation
Because it is difficult to safely update per-cpu data of other cpus in settimeofday().
This commit is contained in:
@@ -73,11 +73,6 @@ struct cpu_local_var {
|
||||
int in_interrupt;
|
||||
int no_preempt;
|
||||
int timer_enabled;
|
||||
|
||||
unsigned long tv_sec;
|
||||
unsigned long tv_nsec;
|
||||
unsigned long last_tsc;
|
||||
|
||||
} __attribute__((aligned(64)));
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user