x86/cpuidle: clean up statistics reporting to user mode
authorJan Beulich <jbeulich@suse.com>
Fri, 10 Aug 2012 12:41:17 +0000 (14:41 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 10 Aug 2012 12:41:17 +0000 (14:41 +0200)
commit780e6b71dea3fcb6226aa7763d0aec468d82c4fc
tree46012904d0be2c276fd38c5cc1c38cf6882afca4
parent700a91d3c162f0af6190e7cb732d85ee2a981550
x86/cpuidle: clean up statistics reporting to user mode

First of all, when no ACPI Cx data was reported, make sure the usage
count passed back to user mode is not random.

Besides that, fold a lot of redundant code.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/acpi/cpu_idle.c