]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PM QoS: Move and rename the implementation files
authorJean Pihet <j-pihet@ti.com>
Thu, 18 Aug 2011 08:31:55 +0000 (10:31 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 18 Aug 2011 08:31:55 +0000 (10:31 +0200)
The PM QoS implementation files are better named
kernel/power/qos.c and include/linux/pm_qos.h.

The PM QoS support is compiled under the CONFIG_PM option.

Signed-off-by: Jean Pihet <j-pihet@ti.com>
Acked-by: markgross <markgross@thegnar.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
18 files changed:
arch/arm/mach-msm/clock.c
drivers/acpi/processor_idle.c
drivers/cpuidle/cpuidle.c
drivers/cpuidle/governors/ladder.c
drivers/cpuidle/governors/menu.c
drivers/media/video/via-camera.c
drivers/net/e1000e/netdev.c
drivers/net/wireless/ipw2x00/ipw2100.c
include/linux/netdevice.h
include/linux/pm_qos.h [moved from include/linux/pm_qos_params.h with 53% similarity]
include/sound/pcm.h
kernel/Makefile
kernel/power/Makefile
kernel/power/qos.c [moved from kernel/pm_qos_params.c with 99% similarity]
net/mac80211/main.c
net/mac80211/mlme.c
net/mac80211/scan.c
sound/core/pcm_native.c

index 22a537669624285e938f31d0ba2cdc0e8d51783f..d9145dfc2a3b04c4096c1dd10f4ac97ef9ac815f 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/list.h>
 #include <linux/err.h>
 #include <linux/spinlock.h>
-#include <linux/pm_qos_params.h>
+#include <linux/pm_qos.h>
 #include <linux/mutex.h>
 #include <linux/clk.h>
 #include <linux/string.h>
index 431ab11c8c1b6736aec984754c9f6002d3542ad8..2e69e09ff03e13a02b04bba1dec60bd9ef0c1cbf 100644 (file)
@@ -37,7 +37,7 @@
 #include <linux/dmi.h>
 #include <linux/moduleparam.h>
 #include <linux/sched.h>       /* need_resched() */
-#include <linux/pm_qos_params.h>
+#include <linux/pm_qos.h>
 #include <linux/clockchips.h>
 #include <linux/cpuidle.h>
 #include <linux/irqflags.h>
index d4c542372886b9cc92ae732590d2404196fb6eab..0df0141100978d583c3a2bbeac17c4625429ab8a 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/mutex.h>
 #include <linux/sched.h>
 #include <linux/notifier.h>
-#include <linux/pm_qos_params.h>
+#include <linux/pm_qos.h>
 #include <linux/cpu.h>
 #include <linux/cpuidle.h>
 #include <linux/ktime.h>
index 12c98900dcf834645f47858f1687a46dbc5857cc..f62fde21e9626edc19e2374a1fb8850b922e9410 100644 (file)
@@ -14,7 +14,7 @@
 
 #include <linux/kernel.h>
 #include <linux/cpuidle.h>
-#include <linux/pm_qos_params.h>
+#include <linux/pm_qos.h>
 #include <linux/moduleparam.h>
 #include <linux/jiffies.h>
 
index c47f3d09c1eeb6184420632a78e892f125c36bf8..3600f1955e4806dee41e61bef256697c6052832b 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <linux/kernel.h>
 #include <linux/cpuidle.h>
-#include <linux/pm_qos_params.h>
+#include <linux/pm_qos.h>
 #include <linux/time.h>
 #include <linux/ktime.h>
 #include <linux/hrtimer.h>
index 85d3048c1d679dcc83cdf6a7afb8d0f6af1f15c2..b3ca3893f3deee8cfd2fdd9bdda5a1a50627f91a 100644 (file)
@@ -21,7 +21,7 @@
 #include <media/videobuf-dma-sg.h>
 #include <linux/delay.h>
 #include <linux/dma-mapping.h>
-#include <linux/pm_qos_params.h>
+#include <linux/pm_qos.h>
 #include <linux/via-core.h>
 #include <linux/via-gpio.h>
 #include <linux/via_i2c.h>
index 362f70382cdd411483ad95ec26af24b0a08e198e..a9aa8dac4a61a02c883132253dbc8b71130ab2cd 100644 (file)
@@ -47,7 +47,7 @@
 #include <linux/if_vlan.h>
 #include <linux/cpu.h>
 #include <linux/smp.h>
-#include <linux/pm_qos_params.h>
+#include <linux/pm_qos.h>
 #include <linux/pm_runtime.h>
 #include <linux/aer.h>
 #include <linux/prefetch.h>
index 3774dd034746286815af04f0322e7d4e778d6f32..aaab76ce60204031bd0091f19abcd48aafe97c1a 100644 (file)
@@ -161,7 +161,7 @@ that only one external action is invoked at a time.
 #include <linux/firmware.h>
 #include <linux/acpi.h>
 #include <linux/ctype.h>
-#include <linux/pm_qos_params.h>
+#include <linux/pm_qos.h>
 
 #include <net/lib80211.h>
 
index ddee79bb8f1583e8dd45a46e25e264da84967104..f72ac6b972b7f571266b581d381560a2b681eb8c 100644 (file)
@@ -31,7 +31,7 @@
 #include <linux/if_link.h>
 
 #ifdef __KERNEL__
-#include <linux/pm_qos_params.h>
+#include <linux/pm_qos.h>
 #include <linux/timer.h>
 #include <linux/delay.h>
 #include <linux/atomic.h>
similarity index 53%
rename from include/linux/pm_qos_params.h
rename to include/linux/pm_qos.h
index a7d87f911cabbbe7b1c8d9eabb01c8667e86fb6d..7ba675413b08b642c1e4f1f297c3eb2ea0663a2c 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _LINUX_PM_QOS_PARAMS_H
-#define _LINUX_PM_QOS_PARAMS_H
+#ifndef _LINUX_PM_QOS_H
+#define _LINUX_PM_QOS_H
 /* interface for the pm_qos_power infrastructure of the linux kernel.
  *
  * Mark Gross <mgross@linux.intel.com>
@@ -25,14 +25,37 @@ struct pm_qos_request_list {
        int pm_qos_class;
 };
 
-void pm_qos_add_request(struct pm_qos_request_list *l, int pm_qos_class, s32 value);
+#ifdef CONFIG_PM
+void pm_qos_add_request(struct pm_qos_request_list *l,
+                       int pm_qos_class, s32 value);
 void pm_qos_update_request(struct pm_qos_request_list *pm_qos_req,
-               s32 new_value);
+                          s32 new_value);
 void pm_qos_remove_request(struct pm_qos_request_list *pm_qos_req);
 
 int pm_qos_request(int pm_qos_class);
 int pm_qos_add_notifier(int pm_qos_class, struct notifier_block *notifier);
 int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier);
 int pm_qos_request_active(struct pm_qos_request_list *req);
+#else
+static inline void pm_qos_add_request(struct pm_qos_request_list *l,
+                                     int pm_qos_class, s32 value)
+                       { return; }
+static inline void pm_qos_update_request(struct pm_qos_request_list *pm_qos_req,
+                                        s32 new_value)
+                       { return; }
+static inline void pm_qos_remove_request(struct pm_qos_request_list *pm_qos_req)
+                       { return; }
+
+static inline int pm_qos_request(int pm_qos_class)
+                       { return 0; }
+static inline int pm_qos_add_notifier(int pm_qos_class,
+                                     struct notifier_block *notifier)
+                       { return 0; }
+static inline int pm_qos_remove_notifier(int pm_qos_class,
+                                        struct notifier_block *notifier)
+                       { return 0; }
+static inline int pm_qos_request_active(struct pm_qos_request_list *req)
+                       { return 0; }
+#endif
 
 #endif
index 57e71fa33f7ce8eac899870d9e11937a2240a6dd..666ee91e8a2e509df820fca869dd12003136b8a3 100644 (file)
@@ -29,7 +29,7 @@
 #include <linux/poll.h>
 #include <linux/mm.h>
 #include <linux/bitops.h>
-#include <linux/pm_qos_params.h>
+#include <linux/pm_qos.h>
 
 #define snd_pcm_substream_chip(substream) ((substream)->private_data)
 #define snd_pcm_chip(pcm) ((pcm)->private_data)
index eca595e2fd523e9dac8ac582b5fa2f4400887afa..2da48d3515ebd955fab857fb4924c9b15800a5aa 100644 (file)
@@ -9,7 +9,7 @@ obj-y     = sched.o fork.o exec_domain.o panic.o printk.o \
            rcupdate.o extable.o params.o posix-timers.o \
            kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o mutex.o \
            hrtimer.o rwsem.o nsproxy.o srcu.o semaphore.o \
-           notifier.o ksysfs.o pm_qos_params.o sched_clock.o cred.o \
+           notifier.o ksysfs.o sched_clock.o cred.o \
            async.o range.o
 obj-y += groups.o
 
index c5ebc6a9064390583ed4f9cb6c11cf857fd0c318..ad6bdd8b401aea9c189e7c2447937fcd8e674270 100644 (file)
@@ -1,7 +1,7 @@
 
 ccflags-$(CONFIG_PM_DEBUG)     := -DDEBUG
 
-obj-$(CONFIG_PM)               += main.o
+obj-$(CONFIG_PM)               += main.o qos.o
 obj-$(CONFIG_PM_SLEEP)         += console.o
 obj-$(CONFIG_FREEZER)          += process.o
 obj-$(CONFIG_SUSPEND)          += suspend.o
similarity index 99%
rename from kernel/pm_qos_params.c
rename to kernel/power/qos.c
index 37f05d0f07939e696eb8657fbd80ce08bab7ef15..61b47384329e8caaabe035618a7e6deb698867dd 100644 (file)
@@ -29,7 +29,7 @@
 
 /*#define DEBUG*/
 
-#include <linux/pm_qos_params.h>
+#include <linux/pm_qos.h>
 #include <linux/sched.h>
 #include <linux/spinlock.h>
 #include <linux/slab.h>
index 866f269183cf9a1532f317e3b9f52bc437a98213..bb771e9f15bc41207a9f188c56f15510582bc408 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/if_arp.h>
 #include <linux/rtnetlink.h>
 #include <linux/bitmap.h>
-#include <linux/pm_qos_params.h>
+#include <linux/pm_qos.h>
 #include <linux/inetdevice.h>
 #include <net/net_namespace.h>
 #include <net/cfg80211.h>
index d6470c7fd6ce34cd226632a30fac0e0be6c7f71f..9604abc61a596fa40830019afb4bd8f04b757d96 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/if_arp.h>
 #include <linux/etherdevice.h>
 #include <linux/rtnetlink.h>
-#include <linux/pm_qos_params.h>
+#include <linux/pm_qos.h>
 #include <linux/crc32.h>
 #include <linux/slab.h>
 #include <net/mac80211.h>
index 6f09eca011123de5dac20d3fed5f6712200fd112..beefb0afefa1fbbab3a1efea44ff19f099ebc40a 100644 (file)
@@ -14,7 +14,7 @@
 
 #include <linux/if_arp.h>
 #include <linux/rtnetlink.h>
-#include <linux/pm_qos_params.h>
+#include <linux/pm_qos.h>
 #include <net/sch_generic.h>
 #include <linux/slab.h>
 #include <net/mac80211.h>
index 1c6be91dfb9887ea1b3634735858e27757c42e21..c74e228731ed8ffb36788f5443581dbd0d4fdae2 100644 (file)
@@ -23,7 +23,7 @@
 #include <linux/file.h>
 #include <linux/slab.h>
 #include <linux/time.h>
-#include <linux/pm_qos_params.h>
+#include <linux/pm_qos.h>
 #include <linux/uio.h>
 #include <linux/dma-mapping.h>
 #include <sound/core.h>