diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2020-09-23 05:50:27 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2020-09-23 05:50:27 +0000 |
commit | c97169c2b1d41deff32cafa7392caf96f421c778 (patch) | |
tree | b76be5b371f6c703936a646c30e094bc498c2372 /usr.sbin/apmd | |
parent | a150ecabd35c8612bf2d7596f8c44dfc9ced95a7 (diff) |
Zap code remnants of the "cool running mode" (removed in 2014)
Nowadays "auto" mode is used instead. ok deraadt@
Diffstat (limited to 'usr.sbin/apmd')
-rw-r--r-- | usr.sbin/apmd/apm-proto.h | 4 | ||||
-rw-r--r-- | usr.sbin/apmd/apmd.c | 3 | ||||
-rw-r--r-- | usr.sbin/apmd/apmsubr.c | 4 |
3 files changed, 3 insertions, 8 deletions
diff --git a/usr.sbin/apmd/apm-proto.h b/usr.sbin/apmd/apm-proto.h index 0d5716eb1a0..4d54947fe85 100644 --- a/usr.sbin/apmd/apm-proto.h +++ b/usr.sbin/apmd/apm-proto.h @@ -1,4 +1,4 @@ -/* $OpenBSD: apm-proto.h,v 1.9 2012/03/26 20:17:45 deraadt Exp $ */ +/* $OpenBSD: apm-proto.h,v 1.10 2020/09/23 05:50:26 jca Exp $ */ /* * Copyright (c) 1996 John T. Kohl @@ -38,7 +38,6 @@ enum apm_action { SETPERF_LOW, SETPERF_HIGH, SETPERF_AUTO, - SETPERF_COOL }; enum apm_state { @@ -52,7 +51,6 @@ enum apm_perfmode { PERF_NONE = -1, PERF_MANUAL, PERF_AUTO, - PERF_COOL }; struct apm_command { diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c index 1cb0833f50c..788085ae636 100644 --- a/usr.sbin/apmd/apmd.c +++ b/usr.sbin/apmd/apmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apmd.c,v 1.96 2020/03/13 09:08:58 jca Exp $ */ +/* $OpenBSD: apmd.c,v 1.97 2020/09/23 05:50:26 jca Exp $ */ /* * Copyright (c) 1995, 1996 John T. Kohl @@ -302,7 +302,6 @@ handle_client(int sock_fd, int ctl_fd) setperfpolicy("high"); break; case SETPERF_AUTO: - case SETPERF_COOL: doperf = PERF_AUTO; reply.newstate = NORMAL; logmsg(LOG_NOTICE, "setting hw.perfpolicy to auto"); diff --git a/usr.sbin/apmd/apmsubr.c b/usr.sbin/apmd/apmsubr.c index 5af4ab98546..9a8232e498f 100644 --- a/usr.sbin/apmd/apmsubr.c +++ b/usr.sbin/apmd/apmsubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apmsubr.c,v 1.8 2006/03/15 20:30:28 sturm Exp $ */ +/* $OpenBSD: apmsubr.c,v 1.9 2020/09/23 05:50:26 jca Exp $ */ /* * Copyright (c) 1995,1996 John T. Kohl @@ -79,8 +79,6 @@ perf_mode(int mode) return "manual"; case PERF_AUTO: return "auto"; - case PERF_COOL: - return "cool running"; default: return "invalid"; } |