Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 194db92f authored by Daniel Lezcano's avatar Daniel Lezcano Committed by Rafael J. Wysocki
Browse files

SH: cpuidle: remove CPUIDLE_DRIVER_STATE_START usage



The CPUIDLE_DRIVER_STATE_START constant is only set when the kernel compilation
option CONFIG_ARCH_HAS_CPU_RELAX is set, but this is only relatated to x86, so
it is always zero.

Remove the reference to this constant in the code.

Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: default avatarSimon Horman <horms+renesas@verge.net.au>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 055d752f
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -63,9 +63,7 @@ void sh_mobile_setup_cpuidle(void)
	struct cpuidle_device *dev = &cpuidle_dev;
	struct cpuidle_driver *drv = &cpuidle_driver;
	struct cpuidle_state *state;
	int i;

	i = CPUIDLE_DRIVER_STATE_START;
	int i = 0;

	state = &drv->states[i++];
	snprintf(state->name, CPUIDLE_NAME_LEN, "C1");
@@ -77,7 +75,7 @@ void sh_mobile_setup_cpuidle(void)
	state->flags |= CPUIDLE_FLAG_TIME_VALID;
	state->enter = cpuidle_sleep_enter;

	drv->safe_state_index = i-1;
	drv->safe_state_index = 0;

	if (sh_mobile_sleep_supported & SUSP_SH_SF) {
		state = &drv->states[i++];