Messages in this thread Patch in this message |  | | From | Nicolai Stange <> | Subject | [RFC v8 19/28] clockevents: introduce CLOCK_EVT_FEAT_NO_ADJUST flag | Date | Sat, 19 Nov 2016 17:10:27 +0100 |
| |
Upcoming changes to the clockevent core will make it adjusting a clockevent device's mult/shift pair in order to compensate for NTP corrections made by the timekeeping core.
For certain devices this behaviour is unwanted. Introduce the CLOCK_EVT_FEAT_NO_ADJUST flag that, when being set, will cause a clockevent device to be excluded from those adjustments.
Signed-off-by: Nicolai Stange <nicstange@gmail.com> --- include/linux/clockchips.h | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/include/linux/clockchips.h b/include/linux/clockchips.h index 5c4670a..76fc51b 100644 --- a/include/linux/clockchips.h +++ b/include/linux/clockchips.h @@ -66,6 +66,12 @@ enum clock_event_state { */ # define CLOCK_EVT_FEAT_HRTIMER 0x000080 +/* + * Clockevent device's mult/shift pair shall not get adjusted in order + * to compensate for NTP corrections made in the timekeeping core. + */ +# define CLOCK_EVT_FEAT_NO_ADJUST 0x000100 + /** * struct clock_event_device - clock event device descriptor * @event_handler: Assigned by the framework to be called by the low -- 2.10.2
|  |