projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45f7426
)
timers: Use this_cpu_read
author
Christoph Lameter
<
[email protected]
>
Tue, 30 Nov 2010 20:05:53 +0000
(14:05 -0600)
committer
Thomas Gleixner
<
[email protected]
>
Sun, 12 Dec 2010 17:38:09 +0000
(18:38 +0100)
Eric asked for this.
[tglx: Because it generates faster code according to Erics ]
Signed-off-by: Christoph Lameter <
[email protected]
>
Cc: Pekka Enberg <
[email protected]
>
Cc: Eric Dumazet <
[email protected]
>
Cc: Mathieu Desnoyers <
[email protected]
>
Cc: Tejun Heo <
[email protected]
>
Cc:
[email protected]
LKML-Reference: <alpine.DEB.2.00.
1011301404490
[email protected]
>
Signed-off-by: Thomas Gleixner <
[email protected]
>
kernel/timer.c
patch
|
blob
|
history
diff --git
a/kernel/timer.c
b/kernel/timer.c
index 483e54ba5c935d1f19c9fb52c7640de650ad164b..beb97fd11ac23646d548b9a87d726540f6f8eff5 100644
(file)
--- a/
kernel/timer.c
+++ b/
kernel/timer.c
@@
-1227,7
+1227,7
@@
static unsigned long cmp_next_hrtimer_event(unsigned long now,
*/
unsigned long get_next_timer_interrupt(unsigned long now)
{
- struct tvec_base *base = __
get_cpu_var
(tvec_bases);
+ struct tvec_base *base = __
this_cpu_read
(tvec_bases);
unsigned long expires;
spin_lock(&base->lock);
@@
-1267,7
+1267,7
@@
void update_process_times(int user_tick)
*/
static void run_timer_softirq(struct softirq_action *h)
{
- struct tvec_base *base = __
get_cpu_var
(tvec_bases);
+ struct tvec_base *base = __
this_cpu_read
(tvec_bases);
hrtimer_run_pending();