diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-09-07 02:19:51 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-09-07 02:19:51 -0400 |
| commit | a1922ed661ab2c1637d0b10cde933bd9cd33d965 (patch) | |
| tree | 0f1777542b385ebefd30b3586d830fd8ed6fda5b /kernel/time/tick-sched.c | |
| parent | 75e33751ca8bbb72dd6f1a74d2810ddc8cbe4bdf (diff) | |
| parent | d28daf923ac5e4a0d7cecebae56f3e339189366b (diff) | |
Merge branch 'tracing/core' into tracing/hw-breakpoints
Conflicts:
arch/Kconfig
kernel/trace/trace.h
Merge reason: resolve the conflicts, plus adopt to the new
ring-buffer APIs.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/time/tick-sched.c')
| -rw-r--r-- | kernel/time/tick-sched.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 2aff39c6f10c..e0f59a21c061 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c | |||
| @@ -222,6 +222,15 @@ void tick_nohz_stop_sched_tick(int inidle) | |||
| 222 | 222 | ||
| 223 | cpu = smp_processor_id(); | 223 | cpu = smp_processor_id(); |
| 224 | ts = &per_cpu(tick_cpu_sched, cpu); | 224 | ts = &per_cpu(tick_cpu_sched, cpu); |
| 225 | |||
| 226 | /* | ||
| 227 | * Call to tick_nohz_start_idle stops the last_update_time from being | ||
| 228 | * updated. Thus, it must not be called in the event we are called from | ||
| 229 | * irq_exit() with the prior state different than idle. | ||
| 230 | */ | ||
| 231 | if (!inidle && !ts->inidle) | ||
| 232 | goto end; | ||
| 233 | |||
| 225 | now = tick_nohz_start_idle(ts); | 234 | now = tick_nohz_start_idle(ts); |
| 226 | 235 | ||
| 227 | /* | 236 | /* |
| @@ -239,9 +248,6 @@ void tick_nohz_stop_sched_tick(int inidle) | |||
| 239 | if (unlikely(ts->nohz_mode == NOHZ_MODE_INACTIVE)) | 248 | if (unlikely(ts->nohz_mode == NOHZ_MODE_INACTIVE)) |
| 240 | goto end; | 249 | goto end; |
| 241 | 250 | ||
| 242 | if (!inidle && !ts->inidle) | ||
| 243 | goto end; | ||
| 244 | |||
| 245 | ts->inidle = 1; | 251 | ts->inidle = 1; |
| 246 | 252 | ||
| 247 | if (need_resched()) | 253 | if (need_resched()) |
