Merge branch 'topic/ctl-enhancements' into for-next
[platform/kernel/linux-starfive.git] / kernel / power / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2
3 ifeq ($(CONFIG_DYNAMIC_DEBUG), y)
4 CFLAGS_swap.o                   := -DDEBUG
5 CFLAGS_snapshot.o               := -DDEBUG
6 CFLAGS_energy_model.o           := -DDEBUG
7 endif
8
9 KASAN_SANITIZE_snapshot.o       := n
10
11 obj-y                           += qos.o
12 obj-$(CONFIG_PM)                += main.o
13 obj-$(CONFIG_VT_CONSOLE_SLEEP)  += console.o
14 obj-$(CONFIG_FREEZER)           += process.o
15 obj-$(CONFIG_SUSPEND)           += suspend.o
16 obj-$(CONFIG_PM_TEST_SUSPEND)   += suspend_test.o
17 obj-$(CONFIG_HIBERNATION)       += hibernate.o snapshot.o swap.o
18 obj-$(CONFIG_HIBERNATION_SNAPSHOT_DEV) += user.o
19 obj-$(CONFIG_PM_AUTOSLEEP)      += autosleep.o
20 obj-$(CONFIG_PM_WAKELOCKS)      += wakelock.o
21
22 obj-$(CONFIG_MAGIC_SYSRQ)       += poweroff.o
23
24 obj-$(CONFIG_ENERGY_MODEL)      += energy_model.o