diff options
| author | Frederic Weisbecker <fweisbec@gmail.com> | 2012-10-15 10:17:16 -0400 |
|---|---|---|
| committer | Frederic Weisbecker <fweisbec@gmail.com> | 2012-10-15 12:51:08 -0400 |
| commit | 94a571402012e0dfaa23bbbdd64d033f48477d86 (patch) | |
| tree | 84118deba518eedd0aae50155f214712ac594813 /kernel/time | |
| parent | 9e8f559b08cbc1cfcbf093840a2a760a946cb90f (diff) | |
tick: Conditionally build nohz specific code in tick handler
This optimize a bit the high res tick sched handler.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'kernel/time')
| -rw-r--r-- | kernel/time/tick-sched.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 68a873af09a8..766d4c47a4a4 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c | |||
| @@ -122,6 +122,7 @@ static void tick_sched_do_timer(ktime_t now) | |||
| 122 | 122 | ||
| 123 | static void tick_sched_handle(struct tick_sched *ts, struct pt_regs *regs) | 123 | static void tick_sched_handle(struct tick_sched *ts, struct pt_regs *regs) |
| 124 | { | 124 | { |
| 125 | #ifdef CONFIG_NO_HZ | ||
| 125 | /* | 126 | /* |
| 126 | * When we are idle and the tick is stopped, we have to touch | 127 | * When we are idle and the tick is stopped, we have to touch |
| 127 | * the watchdog as we might not schedule for a really long | 128 | * the watchdog as we might not schedule for a really long |
| @@ -135,6 +136,7 @@ static void tick_sched_handle(struct tick_sched *ts, struct pt_regs *regs) | |||
| 135 | if (is_idle_task(current)) | 136 | if (is_idle_task(current)) |
| 136 | ts->idle_jiffies++; | 137 | ts->idle_jiffies++; |
| 137 | } | 138 | } |
| 139 | #endif | ||
| 138 | update_process_times(user_mode(regs)); | 140 | update_process_times(user_mode(regs)); |
| 139 | profile_tick(CPU_PROFILING); | 141 | profile_tick(CPU_PROFILING); |
| 140 | } | 142 | } |
