~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/kernel/power/Kconfig

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /kernel/power/Kconfig (Version linux-6.12-rc7) and /kernel/power/Kconfig (Version ccs-tools-1.8.12)


  1 # SPDX-License-Identifier: GPL-2.0-only           
  2 config SUSPEND                                    
  3         bool "Suspend to RAM and standby"         
  4         depends on ARCH_SUSPEND_POSSIBLE          
  5         default y                                 
  6         help                                      
  7           Allow the system to enter sleep stat    
  8           powered and thus its contents are pr    
  9           suspend-to-RAM state (e.g. the ACPI     
 10                                                   
 11 config SUSPEND_FREEZER                            
 12         bool "Enable freezer for suspend to RA    
 13                 if ARCH_WANTS_FREEZER_CONTROL     
 14         depends on SUSPEND                        
 15         default y                                 
 16         help                                      
 17           This allows you to turn off the free    
 18           done, no tasks are frozen for suspen    
 19                                                   
 20           Turning OFF this setting is NOT reco    
 21                                                   
 22 config SUSPEND_SKIP_SYNC                          
 23         bool "Skip kernel's sys_sync() on susp    
 24         depends on SUSPEND                        
 25         depends on EXPERT                         
 26         help                                      
 27           Skip the kernel sys_sync() before fr    
 28           Some systems prefer not to pay this     
 29           of suspend, or they are content with    
 30           user-space before invoking suspend.     
 31           at '/sys/power/sync_on_suspend' to c    
 32           This setting changes the default for    
 33           to change the default to disable the    
 34                                                   
 35 config HIBERNATE_CALLBACKS                        
 36         bool                                      
 37                                                   
 38 config HIBERNATION                                
 39         bool "Hibernation (aka 'suspend to dis    
 40         depends on SWAP && ARCH_HIBERNATION_PO    
 41         select HIBERNATE_CALLBACKS                
 42         select CRC32                              
 43         select CRYPTO                             
 44         select CRYPTO_LZO                         
 45         help                                      
 46           Enable the suspend to disk (STD) fun    
 47           called "hibernation" in user interfa    
 48           system and powers it off; and restor    
 49                                                   
 50           You can suspend your machine with 'e    
 51           after placing resume=/dev/swappartit    
 52           in your bootloader's configuration f    
 53                                                   
 54           Alternatively, you can use the addit    
 55           from <http://suspend.sf.net>.           
 56                                                   
 57           In principle it does not require ACP    
 58           ACPI will be used for the final step    
 59           of the reasons to use software suspe    
 60           for suspend states like suspend-to-R    
 61           well with Linux.                        
 62                                                   
 63           It creates an image which is saved i    
 64           boot, pass the 'resume=/dev/swappart    
 65           have it detect the saved image, rest    
 66           continue to run as before. If you do    
 67           be reloaded, then use the 'noresume'    
 68           Note, however, that fsck will be run    
 69           need to run mkswap against the swap     
 70                                                   
 71           It also works with swap files to a l    
 72           <file:Documentation/power/swsusp-and    
 73                                                   
 74           Right now you may boot without resum    
 75           meantime you cannot use the swap par    
 76           suspending.  Also in this case you m    
 77           that were mounted before the suspend    
 78           MOUNT any journaled filesystems moun    
 79           will get corrupted in a nasty way.      
 80                                                   
 81           For more information take a look at     
 82                                                   
 83 config HIBERNATION_SNAPSHOT_DEV                   
 84         bool "Userspace snapshot device"          
 85         depends on HIBERNATION                    
 86         default y                                 
 87         help                                      
 88           Device used by the uswsusp tools.       
 89                                                   
 90           Say N if no snapshotting from usersp    
 91           reduces the attack surface of the ke    
 92                                                   
 93           If in doubt, say Y.                     
 94                                                   
 95 choice                                            
 96         prompt "Default compressor"               
 97         default HIBERNATION_COMP_LZO              
 98         depends on HIBERNATION                    
 99                                                   
100 config HIBERNATION_COMP_LZO                       
101         bool "lzo"                                
102         depends on CRYPTO_LZO                     
103                                                   
104 config HIBERNATION_COMP_LZ4                       
105         bool "lz4"                                
106         depends on CRYPTO_LZ4                     
107                                                   
108 endchoice                                         
109                                                   
110 config HIBERNATION_DEF_COMP                       
111         string                                    
112         default "lzo" if HIBERNATION_COMP_LZO     
113         default "lz4" if HIBERNATION_COMP_LZ4     
114         help                                      
115           Default compressor to be used for hi    
116                                                   
117 config PM_STD_PARTITION                           
118         string "Default resume partition"         
119         depends on HIBERNATION                    
120         default ""                                
121         help                                      
122           The default resume partition is the     
123           to-disk implementation will look for    
124                                                   
125           The partition specified here will be    
126           It should be a valid swap partition     
127           on before suspending.                   
128                                                   
129           The partition specified can be overr    
130                                                   
131                 resume=/dev/<other device>        
132                                                   
133           which will set the resume partition     
134                                                   
135           Note there is currently not a way to    
136           suspended image to. It will simply p    
137           device.                                 
138                                                   
139 config PM_SLEEP                                   
140         def_bool y                                
141         depends on SUSPEND || HIBERNATE_CALLBA    
142         select PM                                 
143                                                   
144 config PM_SLEEP_SMP                               
145         def_bool y                                
146         depends on SMP                            
147         depends on ARCH_SUSPEND_POSSIBLE || AR    
148         depends on PM_SLEEP                       
149         select HOTPLUG_CPU                        
150                                                   
151 config PM_SLEEP_SMP_NONZERO_CPU                   
152         def_bool y                                
153         depends on PM_SLEEP_SMP                   
154         depends on ARCH_SUSPEND_NONZERO_CPU       
155         help                                      
156         If an arch can suspend (for suspend, h    
157         non-zero numbered CPU, it may define A    
158         will allow nohz_full mask to include C    
159                                                   
160 config PM_AUTOSLEEP                               
161         bool "Opportunistic sleep"                
162         depends on PM_SLEEP                       
163         help                                      
164         Allow the kernel to trigger a system t    
165         state automatically whenever there are    
166                                                   
167 config PM_USERSPACE_AUTOSLEEP                     
168         bool "Userspace opportunistic sleep"      
169         depends on PM_SLEEP                       
170         help                                      
171         Notify kernel of aggressive userspace     
172                                                   
173         This option changes the behavior of va    
174         with frequent userspace-initiated tran    
175                                                   
176         Saying Y here, disables code paths tha    
177         enabled. In particular, only enable th    
178         asleep/awake for very short periods of    
179                                                   
180         Only platforms, such as Android, that     
181         a userspace power manager service shou    
182         other machines. Therefore, you should     
183         extremely certain that this is what yo    
184         bad, undesirable effects, and should n    
185                                                   
186                                                   
187 config PM_WAKELOCKS                               
188         bool "User space wakeup sources interf    
189         depends on PM_SLEEP                       
190         help                                      
191         Allow user space to create, activate a    
192         objects with the help of a sysfs-based    
193                                                   
194 config PM_WAKELOCKS_LIMIT                         
195         int "Maximum number of user space wake    
196         range 0 100000                            
197         default 100                               
198         depends on PM_WAKELOCKS                   
199                                                   
200 config PM_WAKELOCKS_GC                            
201         bool "Garbage collector for user space    
202         depends on PM_WAKELOCKS                   
203         default y                                 
204                                                   
205 config PM                                         
206         bool "Device power management core fun    
207         help                                      
208           Enable functionality allowing I/O de    
209           (low power) states, for example afte    
210           (autosuspended), and woken up in res    
211           wake-up event or a driver's request.    
212                                                   
213           Hardware support is generally requir    
214           and the bus type drivers of the buse    
215           responsible for the actual handling     
216           wake-up events.                         
217                                                   
218 config PM_DEBUG                                   
219         bool "Power Management Debug Support"     
220         depends on PM                             
221         help                                      
222         This option enables various debugging     
223         code. This is helpful when debugging a    
224         suspend support.                          
225                                                   
226 config PM_ADVANCED_DEBUG                          
227         bool "Extra PM attributes in sysfs for    
228         depends on PM_DEBUG                       
229         help                                      
230         Add extra sysfs attributes allowing on    
231         fields of device objects from user spa    
232         developer interested in debugging/test    
233                                                   
234 config PM_TEST_SUSPEND                            
235         bool "Test suspend/resume and wakealar    
236         depends on SUSPEND && PM_DEBUG && RTC_    
237         help                                      
238         This option will let you suspend your     
239         make it wake up a few seconds later us    
240         Enable this with a kernel parameter li    
241                                                   
242         You probably want to have your system'    
243         linked, ensuring that it's available w    
244                                                   
245 config PM_SLEEP_DEBUG                             
246         def_bool y                                
247         depends on PM_DEBUG && PM_SLEEP           
248                                                   
249 config DPM_WATCHDOG                               
250         bool "Device suspend/resume watchdog"     
251         depends on PM_DEBUG && PSTORE && EXPER    
252         help                                      
253           Sets up a watchdog timer to capture     
254           locked up attempting to suspend/resu    
255           A detected lockup causes system pani    
256           captured in pstore device for inspec    
257           boot session.                           
258                                                   
259 config DPM_WATCHDOG_TIMEOUT                       
260         int "Watchdog timeout in seconds"         
261         range 1 120                               
262         default 120                               
263         depends on DPM_WATCHDOG                   
264                                                   
265 config PM_TRACE                                   
266         bool                                      
267         help                                      
268           This enables code to save the last P    
269           reboot. The architecture needs to su    
270           example does by saving things in the    
271                                                   
272           The architecture specific code must     
273           functions from <linux/resume-trace.h    
274           <asm/resume-trace.h> header with a T    
275                                                   
276           The way the information is presented    
277           dependent, x86 will print the inform    
278           late_initcall.                          
279                                                   
280 config PM_TRACE_RTC                               
281         bool "Suspend/resume event tracing"       
282         depends on PM_SLEEP_DEBUG                 
283         depends on X86                            
284         select PM_TRACE                           
285         help                                      
286         This enables some cheesy code to save     
287         RTC across reboots, so that you can de    
288         during suspend (or more commonly, duri    
289                                                   
290         To use this debugging feature you shou    
291         machine, reboot it and then run           
292                                                   
293                 dmesg -s 1000000 | grep 'hash     
294                                                   
295         CAUTION: this option will cause your m    
296         set to an invalid time after a resume.    
297                                                   
298 config APM_EMULATION                              
299         tristate "Advanced Power Management Em    
300         depends on SYS_SUPPORTS_APM_EMULATION     
301         help                                      
302           APM is a BIOS specification for savi    
303           techniques. This is mostly useful fo    
304           APM compliant BIOSes. If you say Y h    
305           reset after a RESUME operation, the     
306           battery status information, and user    
307           notification of APM "events" (e.g. b    
308                                                   
309           In order to use APM, you will need s    
310           and more information, read <file:Doc    
311           and the Battery Powered Linux mini-H    
312           <http://www.tldp.org/docs.html#howto    
313                                                   
314           This driver does not spin down disk     
315           manpage ("man 8 hdparm") for that),     
316           VESA-compliant "green" monitors.        
317                                                   
318           Generally, if you don't have a batte    
319           much point in using this driver and     
320           random kernel OOPSes or reboots that    
321           anything, try disabling/enabling thi    
322           APM in your BIOS).                      
323                                                   
324 config PM_CLK                                     
325         def_bool y                                
326         depends on PM && HAVE_CLK                 
327                                                   
328 config PM_GENERIC_DOMAINS                         
329         bool                                      
330         depends on PM                             
331                                                   
332 config WQ_POWER_EFFICIENT_DEFAULT                 
333         bool "Enable workqueue power-efficient    
334         depends on PM                             
335         help                                      
336           Per-cpu workqueues are generally pre    
337           better performance thanks to cache l    
338           per-cpu workqueues tend to be more p    
339           workqueues.                             
340                                                   
341           Enabling workqueue.power_efficient k    
342           per-cpu workqueues which were observ    
343           significantly to power consumption u    
344           lower power usage at the cost of sma    
345                                                   
346           This config option determines whethe    
347           is enabled by default.                  
348                                                   
349           If in doubt, say N.                     
350                                                   
351 config PM_GENERIC_DOMAINS_SLEEP                   
352         def_bool y                                
353         depends on PM_SLEEP && PM_GENERIC_DOMA    
354                                                   
355 config PM_GENERIC_DOMAINS_OF                      
356         def_bool y                                
357         depends on PM_GENERIC_DOMAINS && OF       
358                                                   
359 config CPU_PM                                     
360         bool                                      
361                                                   
362 config ENERGY_MODEL                               
363         bool "Energy Model for devices with DV    
364         depends on SMP                            
365         depends on CPU_FREQ                       
366         help                                      
367           Several subsystems (thermal and/or t    
368           can leverage information about the e    
369           make smarter decisions. This config     
370           from which subsystems can access the    
371                                                   
372           The exact usage of the energy model     
373                                                   
374           If in doubt, say N.                     
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php