From 2e01237b016384854f21b65422409ca5de55ded8 Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Sat, 4 Jul 2015 23:27:15 +0800 Subject: [PATCH] powerd: Staticize global variables --- usr.sbin/powerd/powerd.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/usr.sbin/powerd/powerd.c b/usr.sbin/powerd/powerd.c index 06e819283b..50fc6bba97 100644 --- a/usr.sbin/powerd/powerd.c +++ b/usr.sbin/powerd/powerd.c @@ -85,14 +85,14 @@ static int NCpuPwrDomUsed; static int NCpus; static cpumask_t UschedCpumask; -int DebugOpt; -int TurboOpt = 1; -int CpuLimit; /* # of cpus at max frequency */ -int PowerFd; -int Hysteresis = 10; /* percentage */ -double TriggerUp = 0.25;/* single-cpu load to force max freq */ -double TriggerDown; /* load per cpu to force the min freq */ -static int BatLifeMin = 2; /* shutdown the box, if low on battery life */ +static int DebugOpt; +static int TurboOpt = 1; +static int CpuLimit; /* # of cpus at max frequency */ +static int PowerFd; +static int Hysteresis = 10; /* percentage */ +static double TriggerUp = 0.25; /* single-cpu load to force max freq */ +static double TriggerDown; /* load per cpu to force the min freq */ +static int BatLifeMin = 2; /* shutdown the box, if low on battery life */ static struct timespec BatLifePrevT; static int BatLifePollIntvl = 5; /* unit: sec */ static int HasPerfbias = 1; -- 2.41.0