diff options
| author | Ingo Molnar <mingo@kernel.org> | 2013-12-17 09:27:08 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2013-12-17 09:27:08 -0500 |
| commit | bb799d3b980eb803ca2da4a4eefbd9308f8d988a (patch) | |
| tree | 69fbe0cd6d47b23a50f5e1d87bf7489532fae149 /kernel/time/tick-common.c | |
| parent | 919fc6e34831d1c2b58bfb5ae261dc3facc9b269 (diff) | |
| parent | 319e2e3f63c348a9b66db4667efa73178e18b17d (diff) | |
Merge tag 'v3.13-rc4' into core/locking
Merge Linux 3.13-rc4, to refresh this rather old tree with the latest fixes.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/time/tick-common.c')
| -rw-r--r-- | kernel/time/tick-common.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kernel/time/tick-common.c b/kernel/time/tick-common.c index 64522ecdfe0e..162b03ab0ad2 100644 --- a/kernel/time/tick-common.c +++ b/kernel/time/tick-common.c | |||
| @@ -33,6 +33,21 @@ DEFINE_PER_CPU(struct tick_device, tick_cpu_device); | |||
| 33 | */ | 33 | */ |
| 34 | ktime_t tick_next_period; | 34 | ktime_t tick_next_period; |
| 35 | ktime_t tick_period; | 35 | ktime_t tick_period; |
| 36 | |||
| 37 | /* | ||
| 38 | * tick_do_timer_cpu is a timer core internal variable which holds the CPU NR | ||
| 39 | * which is responsible for calling do_timer(), i.e. the timekeeping stuff. This | ||
| 40 | * variable has two functions: | ||
| 41 | * | ||
| 42 | * 1) Prevent a thundering herd issue of a gazillion of CPUs trying to grab the | ||
| 43 | * timekeeping lock all at once. Only the CPU which is assigned to do the | ||
| 44 | * update is handling it. | ||
| 45 | * | ||
| 46 | * 2) Hand off the duty in the NOHZ idle case by setting the value to | ||
| 47 | * TICK_DO_TIMER_NONE, i.e. a non existing CPU. So the next cpu which looks | ||
| 48 | * at it will take over and keep the time keeping alive. The handover | ||
| 49 | * procedure also covers cpu hotplug. | ||
| 50 | */ | ||
| 36 | int tick_do_timer_cpu __read_mostly = TICK_DO_TIMER_BOOT; | 51 | int tick_do_timer_cpu __read_mostly = TICK_DO_TIMER_BOOT; |
| 37 | 52 | ||
| 38 | /* | 53 | /* |
