diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-08-05 21:10:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-08-05 21:10:11 +0000 |
commit | 0cc0395cb94b162a229a1e65d3e983d1caac8e29 (patch) | |
tree | 4c9081b38135afce8180fed145cf129efde8504e /sys/arch/i386/include/cpu.h | |
parent | a9368e40d779aa514284ed1d60e4293893045eea (diff) |
new i386/amd64 machdep.lidsuspend sysctl which decides whether a lid
close causes a suspend. resumes are not tied to this; they happen
unconditionally. this is a temporary knob for the 4.8 release; afterwards
it will move to a more convenient place
much moaning discussing where to put the knob with kettenis
tested by various including phessler
Diffstat (limited to 'sys/arch/i386/include/cpu.h')
-rw-r--r-- | sys/arch/i386/include/cpu.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/i386/include/cpu.h b/sys/arch/i386/include/cpu.h index 04ee23d9986..7ab24ef2037 100644 --- a/sys/arch/i386/include/cpu.h +++ b/sys/arch/i386/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.112 2010/07/25 21:43:37 deraadt Exp $ */ +/* $OpenBSD: cpu.h,v 1.113 2010/08/05 21:10:09 deraadt Exp $ */ /* $NetBSD: cpu.h,v 1.35 1996/05/05 19:29:26 christos Exp $ */ /*- @@ -456,7 +456,8 @@ void vm86_gpfault(struct proc *, int); #define CPU_SSE 14 /* supports SSE */ #define CPU_SSE2 15 /* supports SSE2 */ #define CPU_XCRYPT 16 /* supports VIA xcrypt in userland */ -#define CPU_MAXID 17 /* number of valid machdep ids */ +#define CPU_LIDSUSPEND 17 /* lid close causes a suspend */ +#define CPU_MAXID 18 /* number of valid machdep ids */ #define CTL_MACHDEP_NAMES { \ { 0, 0 }, \ @@ -476,6 +477,7 @@ void vm86_gpfault(struct proc *, int); { "sse", CTLTYPE_INT }, \ { "sse2", CTLTYPE_INT }, \ { "xcrypt", CTLTYPE_INT }, \ + { "lidsuspend", CTLTYPE_INT }, \ } /* |