-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: imx: move imx6q_cpuidle_driver into a separate file
Move imx6q_cpuidle_driver into a separate file as more codes will be added when WAIT mode gets implemented as cpuidle. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
- Loading branch information
Shawn Guo
committed
Jan 30, 2013
1 parent
485863b
commit 12bb344
Showing
4 changed files
with
37 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (C) 2012 Freescale Semiconductor, Inc. | ||
* | ||
* 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. | ||
*/ | ||
|
||
#include <linux/cpuidle.h> | ||
#include <linux/module.h> | ||
#include <asm/cpuidle.h> | ||
|
||
#include "cpuidle.h" | ||
|
||
static struct cpuidle_driver imx6q_cpuidle_driver = { | ||
.name = "imx6q_cpuidle", | ||
.owner = THIS_MODULE, | ||
.en_core_tk_irqen = 1, | ||
.states[0] = ARM_CPUIDLE_WFI_STATE, | ||
.state_count = 1, | ||
}; | ||
|
||
int __init imx6q_cpuidle_init(void) | ||
{ | ||
return imx_cpuidle_init(&imx6q_cpuidle_driver); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters