projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75e3b37
)
hrtimer: Simplify get_target_base() by returning current base
author
Frederic Weisbecker
<fweisbec@gmail.com>
Tue, 18 Aug 2015 14:18:28 +0000
(16:18 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Tue, 18 Aug 2015 16:36:59 +0000
(18:36 +0200)
Instead of fetching again the current cpu base, just take it from the
parameter.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Link:
http://lkml.kernel.org/r/1439907509-9553-2-git-send-email-fweisbec@gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/hrtimer.c
patch
|
blob
|
history
diff --git
a/kernel/time/hrtimer.c
b/kernel/time/hrtimer.c
index 55575d4f253c672afba781fad03652294d101f51..f9eb21ba3af6f5aac505d34231787d9b04e7334a 100644
(file)
--- a/
kernel/time/hrtimer.c
+++ b/
kernel/time/hrtimer.c
@@
-183,7
+183,7
@@
struct hrtimer_cpu_base *get_target_base(struct hrtimer_cpu_base *base,
int pinned)
{
if (pinned || !base->migration_enabled)
- return
this_cpu_ptr(&hrtimer_bases)
;
+ return
base
;
return &per_cpu(hrtimer_bases, get_nohz_timer_target());
}
#else
@@
-191,7
+191,7
@@
static inline
struct hrtimer_cpu_base *get_target_base(struct hrtimer_cpu_base *base,
int pinned)
{
- return
this_cpu_ptr(&hrtimer_bases)
;
+ return
base
;
}
#endif