Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1436864
| From | Jisheng Zhang <jszhang@marvell.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] tick: broadcast-hrtimer: set name of the ce_broadcast_hrtimer |
| Date | 2016-07-05 11:10 +0200 |
| Message-ID | <rRuwG-MJ-39@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
This is to avoid the "null" name when we either
~ # cat /sys/devices/system/clockevents/broadcast/current_device
(null)
or
~ # cat /proc/timer_list
...
Tick Device: mode: 1
Broadcast device
Clock Event Device: (null)
...
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
---
kernel/time/tick-broadcast-hrtimer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/time/tick-broadcast-hrtimer.c b/kernel/time/tick-broadcast-hrtimer.c
index 53d7184..690b797 100644
--- a/kernel/time/tick-broadcast-hrtimer.c
+++ b/kernel/time/tick-broadcast-hrtimer.c
@@ -75,6 +75,7 @@ static int bc_set_next(ktime_t expires, struct clock_event_device *bc)
}
static struct clock_event_device ce_broadcast_hrtimer = {
+ .name = "bc_hrtimer",
.set_state_shutdown = bc_shutdown,
.set_next_ktime = bc_set_next,
.features = CLOCK_EVT_FEAT_ONESHOT |
--
2.8.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] tick: broadcast-hrtimer: set name of the ce_broadcast_hrtimer Jisheng Zhang <jszhang@marvell.com> - 2016-07-05 11:10 +0200 [tip:timers/core] tick/broadcast-hrtimer: Set name of the ce_broadcast_hrtimer tip-bot for Jisheng Zhang <tipbot@zytor.com> - 2016-07-05 17:40 +0200
csiph-web