]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcxhr: convert timeval to ktime_t
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Tue, 28 Oct 2014 12:27:44 +0000 (14:27 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 Oct 2014 14:07:25 +0000 (15:07 +0100)
commit6b43cb9e63c2f28ca7d53952e4594edf40fa6bae
tree1b44805bde641b1141c64a61cfc89d3f917c6bde
parent49a6b77b2d27bc2d5d4fe732f0c65f370fc30ffc
ALSA: pcxhr: convert timeval to ktime_t

This patch is concerned with migrating the time variables in the pcxhr
module found in the sound driver. The changes are concerend with the
y2038 problem where timeval will overflow in the year 2038. ktime_t
was used instead of timeval to get the wall time. The difference
is displayed now in nanoseconds instead of microseconds.

Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/pcxhr/pcxhr.c
sound/pci/pcxhr/pcxhr_core.c