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)
commitd2dc13b5339c657e526c405888df69d99322a016
tree8c9c822cdeda7cc193a76c8fc5b4bc82d00d8d75
parent0fd79588f9e4e544b2ef2b0265e62b4c04fc1003
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