cpuidle: fix cpuidle time and usage overflow
authorYi Yang <yi.y.yang@intel.com>
Mon, 25 Feb 2008 00:46:12 +0000 (08:46 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 26 Mar 2008 04:45:26 +0000 (00:45 -0400)
commit8b78cf602fd3bd97c0080edd22fe8fd5d0fa7832
treee5f8d7f74c0c1dbd03af793e0b7cb8fb1c06ccdf
parent996520c1fdd2948addb629be56c9febf2967e02b
cpuidle: fix cpuidle time and usage overflow

cpuidle C-state sysfs node time and usage are very easy to overflow because
they are all of unsigned int type, time will overflow within about two hours,
usage will take longer time to overflow, but they are increasing for ever.

This patch will convert them to unsigned long long.

Signed-off-by: Yi Yang <yi.y.yang@intel.com>
Acked-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/cpuidle/cpuidle.c
drivers/cpuidle/sysfs.c
include/linux/cpuidle.h