Home
last modified time | relevance | path

Searched hist:b111df84 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/kernel/time/
H A Ditimer.cb111df84 Mon Nov 25 14:25:46 CST 2019 Arnd Bergmann <arnd@arndb.de> y2038: alarm: fix half-second cut-off

Changing alarm_itimer accidentally broke the logic for arithmetic
rounding of half seconds in the return code.

Change it to a constant based on NSEC_PER_SEC, as suggested by
Ben Hutchings.

Fixes: bd40a175769d ("y2038: itimer: change implementation to timespec64")
Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
b111df84 Mon Nov 25 14:25:46 CST 2019 Arnd Bergmann <arnd@arndb.de> y2038: alarm: fix half-second cut-off

Changing alarm_itimer accidentally broke the logic for arithmetic
rounding of half seconds in the return code.

Change it to a constant based on NSEC_PER_SEC, as suggested by
Ben Hutchings.

Fixes: bd40a175769d ("y2038: itimer: change implementation to timespec64")
Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>