Thadeu Lima de Souza Cascardo
65b7a5a36a
alarmtimer: Use EOPNOTSUPP instead of ENOTSUPP
...
commit f18ddc13af981ce3c7b7f26925f099e7c6929aba upstream.
ENOTSUPP is not supposed to be returned to userspace. This was found on an
OpenPower machine, where the RTC does not support set_alarm.
On that system, a clock_nanosleep(CLOCK_REALTIME_ALARM, ...) results in
"524 Unknown error 524"
Replace it with EOPNOTSUPP which results in the expected "95 Operation not
supported" error.
Fixes: 1c6b39ad3f (alarmtimers: Return -ENOTSUPP if no RTC device is present)
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20190903171802.28314-1-cascardo@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-05 12:30:33 +02:00
..
alarmtimer.c
alarmtimer: Use EOPNOTSUPP instead of ENOTSUPP
2019-10-05 12:30:33 +02:00
clockevents.c
clockevents: Make clockevents_subsys static
2016-07-19 10:48:06 +02:00
clocksource.c
clocksource: Defer override invalidation unless clock is unstable
2016-08-31 14:43:33 -07:00
hrtimer.c
hrtimer: Ensure POSIX compliance (relative CLOCK_REALTIME hrtimers)
2018-03-03 10:23:20 +01:00
itimer.c
itimers: Handle relative timers with CONFIG_TIME_LOW_RES proper
2016-01-17 11:13:55 +01:00
jiffies.c
jiffies: Use CLOCKSOURCE_MASK instead of constant
2016-02-27 08:55:31 +01:00
Kconfig
rcu: Drop RCU_USER_QS in favor of NO_HZ_FULL
2015-07-06 13:52:18 -07:00
Makefile
time: Remove development rules from Kbuild/Makefile
2015-07-01 09:57:35 +02:00
ntp.c
ntp: Limit TAI-UTC offset
2019-08-04 09:33:21 +02:00
ntp_internal.h
ntp: Fix second_overflow's input parameter type to be 64bits
2015-12-16 16:50:56 -08:00
posix-clock.c
time: Change posix clocks ops interfaces to use timespec64
2018-03-24 11:00:09 +01:00
posix-cpu-timers.c
posix-timers: Sanitize overrun handling
2018-11-10 07:43:01 -08:00
posix-timers.c
posix-timers: Sanitize overrun handling
2018-11-10 07:43:01 -08:00
sched_clock.c
timers, sched_clock: Update timeout for clock wrap
2018-03-22 09:17:42 +01:00
test_udelay.c
time: Avoid timespec in udelay_test
2016-06-20 12:47:26 -07:00
tick-broadcast-hrtimer.c
tick/broadcast-hrtimer: Set name of the ce_broadcast_hrtimer
2016-07-05 17:02:19 +02:00
tick-broadcast.c
tick/broadcast: Use for_each_cpu() specially on UP kernels
2018-05-22 16:57:58 +02:00
tick-common.c
clockevents: Remove unused set_mode() callback
2015-09-14 11:00:55 +02:00
tick-internal.h
timers: Forward the wheel clock whenever possible
2016-07-07 10:35:11 +02:00
tick-oneshot.c
clockevents: Provide functions to set and get the state
2015-06-02 14:40:47 +02:00
tick-sched.c
nohz: Fix local_timer_softirq_pending()
2018-08-09 12:17:57 +02:00
tick-sched.h
timers/nohz: Convert tick dependency mask to atomic_t
2016-03-29 11:52:11 +02:00
time.c
time: Introduce jiffies64_to_nsecs()
2018-10-10 08:53:18 +02:00
timeconst.bc
time: Introduce jiffies64_to_nsecs()
2018-10-10 08:53:18 +02:00
timeconv.c
time: Add time64_to_tm()
2016-06-20 12:47:15 -07:00
timecounter.c
timecounter: keep track of accumulated fractional nanoseconds
2014-12-30 18:29:27 -05:00
timekeeping.c
timekeeping: Use proper seqcount initializer
2019-02-12 19:44:54 +01:00
timekeeping.h
hrtimer: Make offset update smarter
2015-04-22 17:06:49 +02:00
timekeeping_debug.c
timekeeping: Use deferred printk() in debug code
2017-02-23 17:44:36 +01:00
timekeeping_internal.h
clocksource: Make clocksource validation work for all clocksources
2015-12-19 15:59:57 +01:00
timer.c
timers: Clear timer_base::must_forward_clk with timer_base::lock held
2018-09-19 22:47:13 +02:00
timer_list.c
timer_list: Guard procfs specific code
2019-08-04 09:33:21 +02:00
timer_stats.c
timer/debug: Change /proc/timer_stats from 0644 to 0600
2019-05-10 17:52:11 +02:00