Skip to content

Commit

Permalink
PM: Fix freezer compilation if PM_SLEEP is unset
Browse files Browse the repository at this point in the history
Freezer fails to compile if with the following configuration
settings:

CONFIG_CGROUPS=y
CONFIG_CGROUP_FREEZER=y
CONFIG_MODULES=y
CONFIG_FREEZER=y
CONFIG_PM=y
CONFIG_PM_SLEEP=n

Fix this by making process.o compilation depend on CONFIG_FREEZER.

Reported-by: Cheng Renquan <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Signed-off-by: Len Brown <[email protected]>
  • Loading branch information
rjwysocki authored and lenb committed Jan 16, 2009
1 parent c597650 commit 33f1d7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/power/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ EXTRA_CFLAGS += -DDEBUG
endif

obj-y := main.o
obj-$(CONFIG_PM_SLEEP) += process.o console.o
obj-$(CONFIG_PM_SLEEP) += console.o
obj-$(CONFIG_FREEZER) += process.o
obj-$(CONFIG_HIBERNATION) += swsusp.o disk.o snapshot.o swap.o user.o

obj-$(CONFIG_MAGIC_SYSRQ) += poweroff.o

0 comments on commit 33f1d7e

Please sign in to comment.