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

Commit 688036b5 authored by Daniel Lezcano's avatar Daniel Lezcano Committed by Rafael J. Wysocki
Browse files

ARM: shmobile: cpuidle: remove useless WFI function



Remove the shmobile_enter_wfi function which is the same as the
common WFI enter function from the arm cpuidle driver defined
with the ARM_CPUIDLE_WFI_STATE macro.

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 d5047097
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -16,20 +16,12 @@
#include <asm/cpuidle.h>
#include <asm/io.h>

int shmobile_enter_wfi(struct cpuidle_device *dev, struct cpuidle_driver *drv,
		       int index)
{
	cpu_do_idle();
	return 0;
}

static struct cpuidle_device shmobile_cpuidle_dev;
static struct cpuidle_driver shmobile_cpuidle_default_driver = {
	.name			= "shmobile_cpuidle",
	.owner			= THIS_MODULE,
	.en_core_tk_irqen	= 1,
	.states[0]		= ARM_CPUIDLE_WFI_STATE,
	.states[0].enter	= shmobile_enter_wfi,
	.safe_state_index	= 0, /* C1 */
	.state_count		= 1,
};