From 2f8ad6c087bf90022edfbdcffe6255ad0df6ce95 Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Sun, 10 Apr 2005 20:42:55 +0000 Subject: [PATCH] Drop the default running value to 60% from 80%. Testing shows that we cycle too much, wasting power if we trigger a jump to full speed too easily. CPU-bound tasks quickly push idle below this level. --- usr.sbin/powerd/powerd.8 | 2 +- usr.sbin/powerd/powerd.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/powerd/powerd.8 b/usr.sbin/powerd/powerd.8 index fdf19245383f..d8d9bbacdf6b 100644 --- a/usr.sbin/powerd/powerd.8 +++ b/usr.sbin/powerd/powerd.8 @@ -86,7 +86,7 @@ The default is 500 ms. Specifies the CPU idle percent level where adaptive mode should consider the CPU running and increase performance. -The default is 80% or lower. +The default is 65% or lower. .It Fl v Verbose mode. Messages about power changes will be printed to stdout and diff --git a/usr.sbin/powerd/powerd.c b/usr.sbin/powerd/powerd.c index a2ecb48cfb20..13f515dc5e79 100644 --- a/usr.sbin/powerd/powerd.c +++ b/usr.sbin/powerd/powerd.c @@ -44,9 +44,9 @@ __FBSDID("$FreeBSD$"); #include #include -#define DEFAULT_ACTIVE_PERCENT 80 +#define DEFAULT_ACTIVE_PERCENT 65 #define DEFAULT_IDLE_PERCENT 90 -#define DEFAULT_POLL_INTERVAL 500 +#define DEFAULT_POLL_INTERVAL 500 /* Poll interval in milliseconds */ enum modes_t { MODE_MIN,