Repository navigation
Commit 1eb208a
committed
PM: Make CONFIG_PM depend on (CONFIG_PM_SLEEP || CONFIG_PM_RUNTIME)
From the users' point of view CONFIG_PM is really only used for
making it possible to set CONFIG_SUSPEND, CONFIG_HIBERNATION,
CONFIG_PM_RUNTIME and (surprisingly enough) CONFIG_XEN_SAVE_RESTORE
(CONFIG_PM_OPP also depends on CONFIG_PM, but quite artificially).
However, both CONFIG_SUSPEND and CONFIG_HIBERNATION require platform
support (independent of CONFIG_PM) and it is not quite obvious that
CONFIG_PM has to be set for CONFIG_XEN_SAVE_RESTORE to be available.
Thus, from the users' point of view, it would be more logical to
automatically select CONFIG_PM if any of the above options depending
on it are set.
Make CONFIG_PM depend on (CONFIG_PM_SLEEP || CONFIG_PM_RUNTIME),
which will cause it to be selected when any of CONFIG_SUSPEND,
CONFIG_HIBERNATION, CONFIG_PM_RUNTIME, CONFIG_XEN_SAVE_RESTORE is
set and will clarify its meaning.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>1 parent cd51e61 commit 1eb208a
2 files changed
Lines changed: 7 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
21 | 5 | | |
22 | 6 | | |
23 | 7 | | |
| |||
102 | 86 | | |
103 | 87 | | |
104 | 88 | | |
105 | | - | |
| 89 | + | |
106 | 90 | | |
107 | 91 | | |
108 | 92 | | |
| |||
133 | 117 | | |
134 | 118 | | |
135 | 119 | | |
136 | | - | |
| 120 | + | |
137 | 121 | | |
138 | 122 | | |
139 | 123 | | |
| |||
224 | 208 | | |
225 | 209 | | |
226 | 210 | | |
227 | | - | |
| 211 | + | |
228 | 212 | | |
229 | 213 | | |
230 | 214 | | |
| |||
246 | 230 | | |
247 | 231 | | |
248 | 232 | | |
249 | | - | |
250 | 233 | | |
251 | 234 | | |
252 | 235 | | |
| |||
0 commit comments