cpuidle: Invert CPUIDLE_FLAG_TIME_VALID logic
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 12 Nov 2014 15:03:50 +0000 (16:03 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 12 Nov 2014 20:17:27 +0000 (21:17 +0100)
commitb82b6cca488074da3852e8a54fde1d9f74bf1557
tree20db4b6c0d6a0180610fa392f32db7aeea515321
parent206c5f60a3d902bc4b56dab2de3e88de5eb06108
cpuidle: Invert CPUIDLE_FLAG_TIME_VALID logic

The only place where the time is invalid is when the ACPI_CSTATE_FFH entry
method is not set. Otherwise for all the drivers, the time can be correctly
measured.

Instead of duplicating the CPUIDLE_FLAG_TIME_VALID flag in all the drivers
for all the states, just invert the logic by replacing it by the flag
CPUIDLE_FLAG_TIME_INVALID, hence we can set this flag only for the acpi idle
driver, remove the former flag from all the drivers and invert the logic with
this flag in the different governor.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
34 files changed:
arch/arm/include/asm/cpuidle.h
arch/arm/mach-davinci/cpuidle.c
arch/arm/mach-imx/cpuidle-imx5.c
arch/arm/mach-imx/cpuidle-imx6q.c
arch/arm/mach-imx/cpuidle-imx6sl.c
arch/arm/mach-omap2/cpuidle34xx.c
arch/arm/mach-omap2/cpuidle44xx.c
arch/arm/mach-s3c64xx/cpuidle.c
arch/arm/mach-shmobile/pm-sh7372.c
arch/arm/mach-tegra/cpuidle-tegra114.c
arch/arm/mach-tegra/cpuidle-tegra20.c
arch/arm/mach-tegra/cpuidle-tegra30.c
arch/mips/include/asm/idle.h
arch/sh/kernel/cpu/shmobile/cpuidle.c
arch/x86/kernel/apm_32.c
drivers/acpi/processor_idle.c
drivers/cpuidle/cpuidle-arm64.c
drivers/cpuidle/cpuidle-at91.c
drivers/cpuidle/cpuidle-big_little.c
drivers/cpuidle/cpuidle-calxeda.c
drivers/cpuidle/cpuidle-cps.c
drivers/cpuidle/cpuidle-exynos.c
drivers/cpuidle/cpuidle-kirkwood.c
drivers/cpuidle/cpuidle-mvebu-v7.c
drivers/cpuidle/cpuidle-powernv.c
drivers/cpuidle/cpuidle-pseries.c
drivers/cpuidle/cpuidle-ux500.c
drivers/cpuidle/cpuidle-zynq.c
drivers/cpuidle/driver.c
drivers/cpuidle/dt_idle_states.c
drivers/cpuidle/governors/ladder.c
drivers/cpuidle/governors/menu.c
drivers/idle/intel_idle.c
include/linux/cpuidle.h