summaryrefslogtreecommitdiff
path: root/sound/pci/riptide
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-06-17 18:10:32 +0300
committerTakashi Iwai <tiwai@suse.de>2016-06-17 23:56:13 +0300
commit3915bf2946520ace5bcc8104717a3cb0452d7430 (patch)
tree031c5d4fa69ee97585d8c0aa8b8ad163b06dee21 /sound/pci/riptide
parentd169133889090903d9feb968deb9fa01240a58f5 (diff)
downloadlinux-3915bf2946520ace5bcc8104717a3cb0452d7430.tar.xz
ALSA: seq_timer: use monotonic times internally
The sequencer client manager reports timestamps in units of unsigned 32-bit seconds/nanoseconds, but that does not suffer from the y2038 overflow because it stores only the delta since the 'last_update' time was recorded. However, the use of the do_gettimeofday() function is problematic and we have to replace it to avoid the overflow on on 32-bit architectures. This uses 'struct timespec64' to record 'last_update', and changes the code to use monotonic timestamps that do not suffer from leap seconds and settimeofday updates. As a side-effect, the code can now use the timespec64_sub() helper and become more readable and also avoid a multiplication to convert from microseconds to nanoseconds. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/riptide')
0 files changed, 0 insertions, 0 deletions