forked from mirrors/nixpkgs
Kernel config: Separate power management and debugging
This commit is contained in:
parent
13764f0b0f
commit
26da67ff73
|
@ -3,19 +3,9 @@
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
''
|
''
|
||||||
# Power management and debugging.
|
# Debugging.
|
||||||
DEBUG_KERNEL y
|
DEBUG_KERNEL y
|
||||||
PM_ADVANCED_DEBUG y
|
|
||||||
${optionalString (versionOlder version "3.19") ''
|
|
||||||
PM_RUNTIME y
|
|
||||||
''}
|
|
||||||
${optionalString (versionAtLeast version "3.10") ''
|
|
||||||
X86_INTEL_PSTATE y
|
|
||||||
''}
|
|
||||||
TIMER_STATS y
|
TIMER_STATS y
|
||||||
${optionalString (versionOlder version "3.10") ''
|
|
||||||
USB_SUSPEND y
|
|
||||||
''}
|
|
||||||
BACKTRACE_SELF_TEST n
|
BACKTRACE_SELF_TEST n
|
||||||
CPU_NOTIFIER_ERROR_INJECT? n
|
CPU_NOTIFIER_ERROR_INJECT? n
|
||||||
DEBUG_DEVRES n
|
DEBUG_DEVRES n
|
||||||
|
@ -28,6 +18,18 @@ with stdenv.lib;
|
||||||
SCHEDSTATS n
|
SCHEDSTATS n
|
||||||
DETECT_HUNG_TASK y
|
DETECT_HUNG_TASK y
|
||||||
|
|
||||||
|
# Power management.
|
||||||
|
${optionalString (versionOlder version "3.19") ''
|
||||||
|
PM_RUNTIME y
|
||||||
|
''}
|
||||||
|
PM_ADVANCED_DEBUG y
|
||||||
|
${optionalString (versionAtLeast version "3.10") ''
|
||||||
|
X86_INTEL_PSTATE y
|
||||||
|
''}
|
||||||
|
${optionalString (versionOlder version "3.10") ''
|
||||||
|
USB_SUSPEND y
|
||||||
|
''}
|
||||||
|
|
||||||
# Support drivers that need external firmware.
|
# Support drivers that need external firmware.
|
||||||
STANDALONE n
|
STANDALONE n
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue