diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-26 14:42:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-26 14:42:10 -0500 |
commit | 5313a20bfca33ac2e15e3f6b6c8cafe806efbcc6 (patch) | |
tree | c45ee8d353a21a0a98d78cf838340c928317134d /kernel | |
parent | a7538a7f87826fb5cacc6959f00dfa9fba6f4b15 (diff) | |
parent | 3494c16676a21e7e53e21b08a0a469a38df6dcfb (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/tick-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/davem/tick-2.6:
[TICK] tick-common: Fix one-shot handling in tick_handle_periodic().
[TIME] tick-sched: Add missing asm/irq_regs.h include.
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/time/tick-common.c | 5 | ||||
-rw-r--r-- | kernel/time/tick-sched.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/kernel/time/tick-common.c b/kernel/time/tick-common.c index 4500e347f1bb..0986a2bfab49 100644 --- a/kernel/time/tick-common.c +++ b/kernel/time/tick-common.c | |||
@@ -77,6 +77,7 @@ static void tick_periodic(int cpu) | |||
77 | void tick_handle_periodic(struct clock_event_device *dev) | 77 | void tick_handle_periodic(struct clock_event_device *dev) |
78 | { | 78 | { |
79 | int cpu = smp_processor_id(); | 79 | int cpu = smp_processor_id(); |
80 | ktime_t next; | ||
80 | 81 | ||
81 | tick_periodic(cpu); | 82 | tick_periodic(cpu); |
82 | 83 | ||
@@ -86,12 +87,12 @@ void tick_handle_periodic(struct clock_event_device *dev) | |||
86 | * Setup the next period for devices, which do not have | 87 | * Setup the next period for devices, which do not have |
87 | * periodic mode: | 88 | * periodic mode: |
88 | */ | 89 | */ |
90 | next = ktime_add(dev->next_event, tick_period); | ||
89 | for (;;) { | 91 | for (;;) { |
90 | ktime_t next = ktime_add(dev->next_event, tick_period); | ||
91 | |||
92 | if (!clockevents_program_event(dev, next, ktime_get())) | 92 | if (!clockevents_program_event(dev, next, ktime_get())) |
93 | return; | 93 | return; |
94 | tick_periodic(cpu); | 94 | tick_periodic(cpu); |
95 | next = ktime_add(next, tick_period); | ||
95 | } | 96 | } |
96 | } | 97 | } |
97 | 98 | ||
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 512a4a906467..51556b95f60f 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c | |||
@@ -21,6 +21,8 @@ | |||
21 | #include <linux/sched.h> | 21 | #include <linux/sched.h> |
22 | #include <linux/tick.h> | 22 | #include <linux/tick.h> |
23 | 23 | ||
24 | #include <asm/irq_regs.h> | ||
25 | |||
24 | #include "tick-internal.h" | 26 | #include "tick-internal.h" |
25 | 27 | ||
26 | /* | 28 | /* |