hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/kernel/time/timer_list.c
....@@ -1,13 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
2
- * kernel/time/timer_list.c
3
- *
43 * List pending timers
54 *
65 * Copyright(C) 2006, Red Hat, Inc., Ingo Molnar
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
116 */
127
138 #include <linux/proc_fs.h>
....@@ -261,6 +256,14 @@
261256 print_name_offset(m, dev->event_handler);
262257 SEQ_printf(m, "\n");
263258 SEQ_printf(m, " retries: %lu\n", dev->retries);
259
+
260
+#ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST
261
+ if (cpu >= 0) {
262
+ const struct clock_event_device *wd = tick_get_wakeup_device(cpu);
263
+
264
+ SEQ_printf(m, "Wakeup Device: %s\n", wd ? wd->name : "<NULL>");
265
+ }
266
+#endif
264267 SEQ_printf(m, "\n");
265268 }
266269
....@@ -281,7 +284,7 @@
281284
282285 static inline void timer_list_header(struct seq_file *m, u64 now)
283286 {
284
- SEQ_printf(m, "Timer List Version: v0.8\n");
287
+ SEQ_printf(m, "Timer List Version: v0.9\n");
285288 SEQ_printf(m, "HRTIMER_MAX_CLOCK_BASES: %d\n", HRTIMER_MAX_CLOCK_BASES);
286289 SEQ_printf(m, "now at %Ld nsecs\n", (unsigned long long)now);
287290 SEQ_printf(m, "\n");