aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cpuidle')
-rw-r--r--drivers/cpuidle/cpuidle-arm64.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/cpuidle/cpuidle-arm64.c b/drivers/cpuidle/cpuidle-arm64.c
index 6ef291c7046f..1c94b88a7a7d 100644
--- a/drivers/cpuidle/cpuidle-arm64.c
+++ b/drivers/cpuidle/cpuidle-arm64.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * ARM64 generic CPU idle driver. 2 * ARM/ARM64 generic CPU idle driver.
3 * 3 *
4 * Copyright (C) 2014 ARM Ltd. 4 * Copyright (C) 2014 ARM Ltd.
5 * Author: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> 5 * Author: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
@@ -9,7 +9,7 @@
9 * published by the Free Software Foundation. 9 * published by the Free Software Foundation.
10 */ 10 */
11 11
12#define pr_fmt(fmt) "CPUidle arm64: " fmt 12#define pr_fmt(fmt) "CPUidle arm: " fmt
13 13
14#include <linux/cpuidle.h> 14#include <linux/cpuidle.h>
15#include <linux/cpumask.h> 15#include <linux/cpumask.h>
@@ -23,7 +23,7 @@
23#include "dt_idle_states.h" 23#include "dt_idle_states.h"
24 24
25/* 25/*
26 * arm64_enter_idle_state - Programs CPU to enter the specified state 26 * arm_enter_idle_state - Programs CPU to enter the specified state
27 * 27 *
28 * dev: cpuidle device 28 * dev: cpuidle device
29 * drv: cpuidle driver 29 * drv: cpuidle driver
@@ -32,8 +32,8 @@
32 * Called from the CPUidle framework to program the device to the 32 * Called from the CPUidle framework to program the device to the
33 * specified target state selected by the governor. 33 * specified target state selected by the governor.
34 */ 34 */
35static int arm64_enter_idle_state(struct cpuidle_device *dev, 35static int arm_enter_idle_state(struct cpuidle_device *dev,
36 struct cpuidle_driver *drv, int idx) 36 struct cpuidle_driver *drv, int idx)
37{ 37{
38 int ret; 38 int ret;
39 39
@@ -57,8 +57,8 @@ static int arm64_enter_idle_state(struct cpuidle_device *dev,
57 return ret ? -1 : idx; 57 return ret ? -1 : idx;
58} 58}
59 59
60static struct cpuidle_driver arm64_idle_driver = { 60static struct cpuidle_driver arm_idle_driver = {
61 .name = "arm64_idle", 61 .name = "arm_idle",
62 .owner = THIS_MODULE, 62 .owner = THIS_MODULE,
63 /* 63 /*
64 * State at index 0 is standby wfi and considered standard 64 * State at index 0 is standby wfi and considered standard
@@ -68,32 +68,32 @@ static struct cpuidle_driver arm64_idle_driver = {
68 * handler for idle state index 0. 68 * handler for idle state index 0.
69 */ 69 */
70 .states[0] = { 70 .states[0] = {
71 .enter = arm64_enter_idle_state, 71 .enter = arm_enter_idle_state,
72 .exit_latency = 1, 72 .exit_latency = 1,
73 .target_residency = 1, 73 .target_residency = 1,
74 .power_usage = UINT_MAX, 74 .power_usage = UINT_MAX,
75 .name = "WFI", 75 .name = "WFI",
76 .desc = "ARM64 WFI", 76 .desc = "ARM WFI",
77 } 77 }
78}; 78};
79 79
80static const struct of_device_id arm64_idle_state_match[] __initconst = { 80static const struct of_device_id arm_idle_state_match[] __initconst = {
81 { .compatible = "arm,idle-state", 81 { .compatible = "arm,idle-state",
82 .data = arm64_enter_idle_state }, 82 .data = arm_enter_idle_state },
83 { }, 83 { },
84}; 84};
85 85
86/* 86/*
87 * arm64_idle_init 87 * arm_idle_init
88 * 88 *
89 * Registers the arm64 specific cpuidle driver with the cpuidle 89 * Registers the arm specific cpuidle driver with the cpuidle
90 * framework. It relies on core code to parse the idle states 90 * framework. It relies on core code to parse the idle states
91 * and initialize them using driver data structures accordingly. 91 * and initialize them using driver data structures accordingly.
92 */ 92 */
93static int __init arm64_idle_init(void) 93static int __init arm_idle_init(void)
94{ 94{
95 int cpu, ret; 95 int cpu, ret;
96 struct cpuidle_driver *drv = &arm64_idle_driver; 96 struct cpuidle_driver *drv = &arm_idle_driver;
97 97
98 /* 98 /*
99 * Initialize idle states data, starting at index 1. 99 * Initialize idle states data, starting at index 1.
@@ -101,7 +101,7 @@ static int __init arm64_idle_init(void)
101 * let the driver initialization fail accordingly since there is no 101 * let the driver initialization fail accordingly since there is no
102 * reason to initialize the idle driver if only wfi is supported. 102 * reason to initialize the idle driver if only wfi is supported.
103 */ 103 */
104 ret = dt_init_idle_driver(drv, arm64_idle_state_match, 1); 104 ret = dt_init_idle_driver(drv, arm_idle_state_match, 1);
105 if (ret <= 0) 105 if (ret <= 0)
106 return ret ? : -ENODEV; 106 return ret ? : -ENODEV;
107 107
@@ -119,4 +119,4 @@ static int __init arm64_idle_init(void)
119 119
120 return cpuidle_register(drv, NULL); 120 return cpuidle_register(drv, NULL);
121} 121}
122device_initcall(arm64_idle_init); 122device_initcall(arm_idle_init);