| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | 2 | /* |
|---|
| 2 | | - * kernel/time/timer_list.c |
|---|
| 3 | | - * |
|---|
| 4 | 3 | * List pending timers |
|---|
| 5 | 4 | * |
|---|
| 6 | 5 | * 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. |
|---|
| 11 | 6 | */ |
|---|
| 12 | 7 | |
|---|
| 13 | 8 | #include <linux/proc_fs.h> |
|---|
| .. | .. |
|---|
| 261 | 256 | print_name_offset(m, dev->event_handler); |
|---|
| 262 | 257 | SEQ_printf(m, "\n"); |
|---|
| 263 | 258 | 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 |
|---|
| 264 | 267 | SEQ_printf(m, "\n"); |
|---|
| 265 | 268 | } |
|---|
| 266 | 269 | |
|---|
| .. | .. |
|---|
| 281 | 284 | |
|---|
| 282 | 285 | static inline void timer_list_header(struct seq_file *m, u64 now) |
|---|
| 283 | 286 | { |
|---|
| 284 | | - SEQ_printf(m, "Timer List Version: v0.8\n"); |
|---|
| 287 | + SEQ_printf(m, "Timer List Version: v0.9\n"); |
|---|
| 285 | 288 | SEQ_printf(m, "HRTIMER_MAX_CLOCK_BASES: %d\n", HRTIMER_MAX_CLOCK_BASES); |
|---|
| 286 | 289 | SEQ_printf(m, "now at %Ld nsecs\n", (unsigned long long)now); |
|---|
| 287 | 290 | SEQ_printf(m, "\n"); |
|---|