Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clockevents: Remove redundant CLOCK_EVT_FEAT_KTIME

The only real usecase for this is the hrtimer based broadcast device.
No point in using two different feature flags for this.

Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260224163429.609049777@kernel.org

authored by

Thomas Gleixner and committed by
Peter Zijlstra
70802807 adcec6a7

+2 -4
-1
include/linux/clockchips.h
··· 45 45 */ 46 46 # define CLOCK_EVT_FEAT_PERIODIC 0x000001 47 47 # define CLOCK_EVT_FEAT_ONESHOT 0x000002 48 - # define CLOCK_EVT_FEAT_KTIME 0x000004 49 48 50 49 /* 51 50 * x86(64) specific (mis)features:
+2 -2
kernel/time/clockevents.c
··· 319 319 WARN_ONCE(!clockevent_state_oneshot(dev), "Current state: %d\n", 320 320 clockevent_get_state(dev)); 321 321 322 - /* Shortcut for clockevent devices that can deal with ktime. */ 323 - if (dev->features & CLOCK_EVT_FEAT_KTIME) 322 + /* ktime_t based reprogramming for the broadcast hrtimer device */ 323 + if (unlikely(dev->features & CLOCK_EVT_FEAT_HRTIMER)) 324 324 return dev->set_next_ktime(expires, dev); 325 325 326 326 delta = ktime_to_ns(ktime_sub(expires, ktime_get()));
-1
kernel/time/tick-broadcast-hrtimer.c
··· 78 78 .set_state_shutdown = bc_shutdown, 79 79 .set_next_ktime = bc_set_next, 80 80 .features = CLOCK_EVT_FEAT_ONESHOT | 81 - CLOCK_EVT_FEAT_KTIME | 82 81 CLOCK_EVT_FEAT_HRTIMER, 83 82 .rating = 0, 84 83 .bound_on = -1,