diff options
Diffstat (limited to 'kernel/time/timer_list.c')
-rw-r--r-- | kernel/time/timer_list.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/kernel/time/timer_list.c b/kernel/time/timer_list.c index ec9ea6cadd85..5479c6e7a023 100644 --- a/kernel/time/timer_list.c +++ b/kernel/time/timer_list.c | |||
@@ -184,12 +184,16 @@ static void print_cpu(struct seq_file *m, int cpu, u64 now) | |||
184 | 184 | ||
185 | #ifdef CONFIG_GENERIC_CLOCKEVENTS | 185 | #ifdef CONFIG_GENERIC_CLOCKEVENTS |
186 | static void | 186 | static void |
187 | print_tickdevice(struct seq_file *m, struct tick_device *td) | 187 | print_tickdevice(struct seq_file *m, struct tick_device *td, int cpu) |
188 | { | 188 | { |
189 | struct clock_event_device *dev = td->evtdev; | 189 | struct clock_event_device *dev = td->evtdev; |
190 | 190 | ||
191 | SEQ_printf(m, "\n"); | 191 | SEQ_printf(m, "\n"); |
192 | SEQ_printf(m, "Tick Device: mode: %d\n", td->mode); | 192 | SEQ_printf(m, "Tick Device: mode: %d\n", td->mode); |
193 | if (cpu < 0) | ||
194 | SEQ_printf(m, "Broadcast device\n"); | ||
195 | else | ||
196 | SEQ_printf(m, "Per CPU device: %d\n", cpu); | ||
193 | 197 | ||
194 | SEQ_printf(m, "Clock Event Device: "); | 198 | SEQ_printf(m, "Clock Event Device: "); |
195 | if (!dev) { | 199 | if (!dev) { |
@@ -223,7 +227,7 @@ static void timer_list_show_tickdevices(struct seq_file *m) | |||
223 | int cpu; | 227 | int cpu; |
224 | 228 | ||
225 | #ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST | 229 | #ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST |
226 | print_tickdevice(m, tick_get_broadcast_device()); | 230 | print_tickdevice(m, tick_get_broadcast_device(), -1); |
227 | SEQ_printf(m, "tick_broadcast_mask: %08lx\n", | 231 | SEQ_printf(m, "tick_broadcast_mask: %08lx\n", |
228 | tick_get_broadcast_mask()->bits[0]); | 232 | tick_get_broadcast_mask()->bits[0]); |
229 | #ifdef CONFIG_TICK_ONESHOT | 233 | #ifdef CONFIG_TICK_ONESHOT |
@@ -233,7 +237,7 @@ static void timer_list_show_tickdevices(struct seq_file *m) | |||
233 | SEQ_printf(m, "\n"); | 237 | SEQ_printf(m, "\n"); |
234 | #endif | 238 | #endif |
235 | for_each_online_cpu(cpu) | 239 | for_each_online_cpu(cpu) |
236 | print_tickdevice(m, tick_get_device(cpu)); | 240 | print_tickdevice(m, tick_get_device(cpu), cpu); |
237 | SEQ_printf(m, "\n"); | 241 | SEQ_printf(m, "\n"); |
238 | } | 242 | } |
239 | #else | 243 | #else |