Skip to contentSkip to conversation

PM: Rename drivers/base/power/main.c to drivers/base/power/sleep.c

RFC PATCH New Rafael J. Wysocki 1 participant 1 message Sep 16, 2010

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 PM: Rename drivers/base/power/main.c to drivers/base/power/sleep.c

From: Rafael J. Wysocki <[email protected]>

The file drivers/base/power/main.c only contains code that is used during system-wide power transitions to sleep states and back to the working state. Moreover, it's only built when CONFIG_PM_SLEEP is set, so the name "main.c" is kind of misleading. Rename it to drivers/base/power/sleep.c to make things more clear.

---
 drivers/base/power/Makefile |    2 
 drivers/base/power/main.c   | 1094 --------------------------------------------
 drivers/base/power/power.h  |    2 
 drivers/base/power/sleep.c  | 1094 ++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 1096 insertions(+), 1096 deletions(-)
drivers/base/power/Makefile +1 -1
Index: linux-2.6/drivers/base/power/Makefile
===================================================================
@@ -1,5 +1,5 @@
 obj-$(CONFIG_PM)	+= sysfs.o
-obj-$(CONFIG_PM_SLEEP)	+= main.o wakeup.o
+obj-$(CONFIG_PM_SLEEP)	+= sleep.o wakeup.o
 obj-$(CONFIG_PM_RUNTIME)	+= runtime.o
 obj-$(CONFIG_PM_OPS)	+= generic_ops.o
 obj-$(CONFIG_PM_TRACE_RTC)	+= trace.o
drivers/base/power/main.c deleted +0 -1094

1,094 lines not on this page · raw message

drivers/base/power/sleep.c new file +1094 -0

1,094 lines not on this page · raw message

drivers/base/power/power.h +1 -1
Index: linux-2.6/drivers/base/power/power.h
===================================================================
@@ -15,7 +15,7 @@ static inline void pm_runtime_remove(str
 /* kernel/power/main.c */
 extern int pm_async_enabled;
 
-/* drivers/base/power/main.c */
+/* drivers/base/power/sleep.c */
 extern struct list_head dpm_list;	/* The active device list */
 
 static inline struct device *to_device(struct list_head *entry)