Commit 186e3cb8a465bac010ee3b020768d2fa2b505aef
Committed by
Ingo Molnar
1 parent
b10db7f0d2
Exists in
master
and in
7 other branches
timer: clean up tick-broadcast.c
clean up tick-broadcast.c Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Showing 2 changed files with 2 additions and 7 deletions Side-by-side Diff
kernel/time/tick-broadcast.c
... | ... | @@ -126,9 +126,9 @@ |
126 | 126 | /* |
127 | 127 | * Broadcast the event to the cpus, which are set in the mask |
128 | 128 | */ |
129 | -int tick_do_broadcast(cpumask_t mask) | |
129 | +static void tick_do_broadcast(cpumask_t mask) | |
130 | 130 | { |
131 | - int ret = 0, cpu = smp_processor_id(); | |
131 | + int cpu = smp_processor_id(); | |
132 | 132 | struct tick_device *td; |
133 | 133 | |
134 | 134 | /* |
... | ... | @@ -138,7 +138,6 @@ |
138 | 138 | cpu_clear(cpu, mask); |
139 | 139 | td = &per_cpu(tick_cpu_device, cpu); |
140 | 140 | td->evtdev->event_handler(td->evtdev); |
141 | - ret = 1; | |
142 | 141 | } |
143 | 142 | |
144 | 143 | if (!cpus_empty(mask)) { |
145 | 144 | |
... | ... | @@ -151,9 +150,7 @@ |
151 | 150 | cpu = first_cpu(mask); |
152 | 151 | td = &per_cpu(tick_cpu_device, cpu); |
153 | 152 | td->evtdev->broadcast(mask); |
154 | - ret = 1; | |
155 | 153 | } |
156 | - return ret; | |
157 | 154 | } |
158 | 155 | |
159 | 156 | /* |
kernel/time/tick-internal.h
... | ... | @@ -70,8 +70,6 @@ |
70 | 70 | * Broadcasting support |
71 | 71 | */ |
72 | 72 | #ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST |
73 | -extern int tick_do_broadcast(cpumask_t mask); | |
74 | - | |
75 | 73 | extern int tick_device_uses_broadcast(struct clock_event_device *dev, int cpu); |
76 | 74 | extern int tick_check_broadcast_device(struct clock_event_device *dev); |
77 | 75 | extern int tick_is_broadcast_device(struct clock_event_device *dev); |