]> git.baikalelectronics.ru Git - kernel.git/commit
pata_pdc2027x: Use 64-bit timekeeping
authorTina Ruchandani <ruchandani.tina@gmail.com>
Tue, 27 Jan 2015 10:19:48 +0000 (15:49 +0530)
committerTejun Heo <tj@kernel.org>
Tue, 27 Jan 2015 16:06:19 +0000 (11:06 -0500)
commit3612f7fed44584989590d18b74d404c86e947828
tree2f02198d245329c9901f9d58484bdb67da95db01
parent2c067d906ceece9d1ec1551b3ac1d9f7bcd1c83d
pata_pdc2027x: Use 64-bit timekeeping

Function pdc_detect_pll_input_clock uses 'struct timeval'
to measure start and end times, used to compute the pll_clock value.
'struct timeval' on 32-bit systems will have its tv_sec field
overflow in year 2038 and beyond. This patch uses 'ktime_t'
(which uses 64 bits for seconds) for start and end times instead.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tina Ruchandani <ruchandani.tina@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/pata_pdc2027x.c