diff options
Diffstat (limited to 'drivers/cpuidle/cpuidle.c')
-rw-r--r-- | drivers/cpuidle/cpuidle.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index d2fabe7863a9..2a98d99cbd46 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <linux/mutex.h> | 12 | #include <linux/mutex.h> |
13 | #include <linux/sched.h> | 13 | #include <linux/sched.h> |
14 | #include <linux/notifier.h> | 14 | #include <linux/notifier.h> |
15 | #include <linux/latency.h> | 15 | #include <linux/pm_qos_params.h> |
16 | #include <linux/cpu.h> | 16 | #include <linux/cpu.h> |
17 | #include <linux/cpuidle.h> | 17 | #include <linux/cpuidle.h> |
18 | 18 | ||
@@ -265,7 +265,10 @@ static struct notifier_block cpuidle_latency_notifier = { | |||
265 | .notifier_call = cpuidle_latency_notify, | 265 | .notifier_call = cpuidle_latency_notify, |
266 | }; | 266 | }; |
267 | 267 | ||
268 | #define latency_notifier_init(x) do { register_latency_notifier(x); } while (0) | 268 | static inline void latency_notifier_init(struct notifier_block *n) |
269 | { | ||
270 | pm_qos_add_notifier(PM_QOS_CPU_DMA_LATENCY, n); | ||
271 | } | ||
269 | 272 | ||
270 | #else /* CONFIG_SMP */ | 273 | #else /* CONFIG_SMP */ |
271 | 274 | ||