]> git.baikalelectronics.ru Git - kernel.git/commit
x86/pmc_atom: Silence shift wrapping warnings in pmc_sleep_tmr_show()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 1 Aug 2014 08:27:15 +0000 (11:27 +0300)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 2 Aug 2014 23:52:17 +0000 (16:52 -0700)
commit36a0fb5cc0753e0138f59f93b71d69a8eeb0886c
treeb337f62cd0df5d9ccff8c64e2b2d0da1c44c5622
parent6e265e690aa269005c9c53f466c2dcfd17157ab9
x86/pmc_atom: Silence shift wrapping warnings in pmc_sleep_tmr_show()

I don't know if we really need 64 bits here but these variables are
declared as u64 and it can't hurt to cast this so we prevent any shift
wrapping.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Aubrey Li <aubrey.li@linux.intel.com>
Link: http://lkml.kernel.org/r/20140801082715.GE28869@mwanda
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/pmc_atom.c