]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mpic_timer: fix convert ticks to time subtraction overflow
authorWang Dongsheng <dongsheng.wang@freescale.com>
Mon, 6 Jan 2014 05:23:31 +0000 (13:23 +0800)
committerScott Wood <scottwood@freescale.com>
Thu, 9 Jan 2014 23:52:14 +0000 (17:52 -0600)
commit2f37b235af589aad24070635b0b61b88d733577b
tree8c9c822cdeda7cc193a76c8fc5b4bc82d00d8d75
parent4c5670bef6afc609e52889c5973b230f9fd30687
powerpc/mpic_timer: fix convert ticks to time subtraction overflow

In some cases tmp_sec may be greater than ticks, because in the process
of calculation ticks and tmp_sec will be rounded.

Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/sysdev/mpic_timer.c