mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 07:36:56 +07:00
d2912cb15b
Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation # extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 4122 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Enrico Weigelt <info@metux.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
35 lines
790 B
C
35 lines
790 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Copyright (C) 2012 Freescale Semiconductor, Inc.
|
|
*/
|
|
|
|
#include <linux/cpuidle.h>
|
|
#include <linux/module.h>
|
|
#include <asm/system_misc.h>
|
|
#include "cpuidle.h"
|
|
|
|
static int imx5_cpuidle_enter(struct cpuidle_device *dev,
|
|
struct cpuidle_driver *drv, int index)
|
|
{
|
|
arm_pm_idle();
|
|
return index;
|
|
}
|
|
|
|
static struct cpuidle_driver imx5_cpuidle_driver = {
|
|
.name = "imx5_cpuidle",
|
|
.owner = THIS_MODULE,
|
|
.states[0] = {
|
|
.enter = imx5_cpuidle_enter,
|
|
.exit_latency = 2,
|
|
.target_residency = 1,
|
|
.name = "IMX5 SRPG",
|
|
.desc = "CPU state retained,powered off",
|
|
},
|
|
.state_count = 1,
|
|
};
|
|
|
|
int __init imx5_cpuidle_init(void)
|
|
{
|
|
return cpuidle_register(&imx5_cpuidle_driver, NULL);
|
|
}
|