projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86: Use this_cpu_ops to optimize code
[linux-2.6-block.git]
/
arch
/
x86
/
kernel
/
tsc.c
diff --git
a/arch/x86/kernel/tsc.c
b/arch/x86/kernel/tsc.c
index 0c40d8b72416ba2ef7e86bfd812b7bf6f1db2f8f..acb08dd7bb575367e50ca6af2d5b3d49c7118ce1 100644
(file)
--- a/
arch/x86/kernel/tsc.c
+++ b/
arch/x86/kernel/tsc.c
@@
-659,7
+659,7
@@
void restore_sched_clock_state(void)
local_irq_save(flags);
- __
get_cpu_var(cyc2ns_offset) = 0
;
+ __
this_cpu_write(cyc2ns_offset, 0)
;
offset = cyc2ns_suspend - sched_clock();
for_each_possible_cpu(cpu)