aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/hyperv_timer.c
diff options
context:
space:
mode:
authorAlexandre Belloni <[email protected]>2021-05-11 01:45:16 +0000
committerThomas Gleixner <[email protected]>2021-05-11 19:28:04 +0000
commite09784a8a751e539dffc94d43bc917b0ac1e934a (patch)
tree6e00548e382a36961740da2374e8ada39aeb45de /drivers/clocksource/hyperv_timer.c
parentLinux 5.13-rc1 (diff)
downloadkernel-e09784a8a751e539dffc94d43bc917b0ac1e934a.tar.gz
kernel-e09784a8a751e539dffc94d43bc917b0ac1e934a.zip
alarmtimer: Check RTC features instead of ops
RTC drivers used to leave .set_alarm() NULL in order to signal the RTC device doesn't support alarms. The drivers are now clearing the RTC_FEATURE_ALARM bit for that purpose in order to keep the rtc_class_ops structure const. So now, .set_alarm() is set unconditionally and this possibly causes the alarmtimer code to select an RTC device that doesn't support alarms. Test RTC_FEATURE_ALARM instead of relying on ops->set_alarm to determine whether alarms are available. Fixes: 7ae41220ef58 ("rtc: introduce features bitfield") Signed-off-by: Alexandre Belloni <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/clocksource/hyperv_timer.c')
0 files changed, 0 insertions, 0 deletions