From owner-svn-src-head@FreeBSD.ORG Thu Jul 4 18:59:59 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 160BF5EB; Thu, 4 Jul 2013 18:59:59 +0000 (UTC) (envelope-from wblock@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id E2CC51937; Thu, 4 Jul 2013 18:59:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r64Ixwgj005894; Thu, 4 Jul 2013 18:59:58 GMT (envelope-from wblock@svn.freebsd.org) Received: (from wblock@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r64Ixwlp005893; Thu, 4 Jul 2013 18:59:58 GMT (envelope-from wblock@svn.freebsd.org) Message-Id: <201307041859.r64Ixwlp005893@svn.freebsd.org> From: Warren Block Date: Thu, 4 Jul 2013 18:59:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r252713 - head/usr.sbin/powerd X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jul 2013 18:59:59 -0000 Author: wblock (doc committer) Date: Thu Jul 4 18:59:58 2013 New Revision: 252713 URL: http://svnweb.freebsd.org/changeset/base/252713 Log: Whitespace fixes: remove tabs on blank links, spaces following content, tabs after spaces. Reviewed by: gjb MFC after: 1 week Modified: head/usr.sbin/powerd/powerd.c Modified: head/usr.sbin/powerd/powerd.c ============================================================================== --- head/usr.sbin/powerd/powerd.c Thu Jul 4 18:56:07 2013 (r252712) +++ head/usr.sbin/powerd/powerd.c Thu Jul 4 18:59:58 2013 (r252713) @@ -154,7 +154,7 @@ read_usage_times(int *load) error = sysctl(cp_times_mib, 2, cp_times, &cp_times_len, NULL, 0); if (error) return (error); - + if (load) { *load = 0; for (cpu = 0; cpu < ncpus; cpu++) { @@ -165,7 +165,7 @@ read_usage_times(int *load) } if (total == 0) continue; - *load += 100 - (cp_times[cpu * CPUSTATES + CP_IDLE] - + *load += 100 - (cp_times[cpu * CPUSTATES + CP_IDLE] - cp_times_old[cpu * CPUSTATES + CP_IDLE]) * 100 / total; } } @@ -236,7 +236,7 @@ get_freq(void) { size_t len; int curfreq; - + len = sizeof(curfreq); if (sysctl(freq_mib, 4, &curfreq, &len, NULL, 0) != 0) { if (vflag) @@ -262,7 +262,7 @@ static int get_freq_id(int freq, int *freqs, int numfreqs) { int i = 1; - + while (i < numfreqs) { if (freqs[i] < freq) break; @@ -717,7 +717,7 @@ main(int argc, char * argv[]) idle = 0; if (set_freq(freq) != 0) { warn("error setting CPU freq %d", - freq); + freq); continue; } } @@ -730,7 +730,7 @@ main(int argc, char * argv[]) warn("read_usage_times() failed"); continue; } - + if (mode == MODE_ADAPTIVE) { if (load > cpu_running_mark) { if (load > 95 || load > cpu_running_mark * 2) @@ -741,7 +741,7 @@ main(int argc, char * argv[]) freq = freqs[0]; } else if (load < cpu_idle_mark && curfreq * load < freqs[get_freq_id( - freq * 7 / 8, freqs, numfreqs)] * + freq * 7 / 8, freqs, numfreqs)] * cpu_running_mark) { freq = freq * 7 / 8; if (freq < freqs[numfreqs - 1]) @@ -757,7 +757,7 @@ main(int argc, char * argv[]) freq = freqs[0] * 2; } else if (load < cpu_idle_mark / 2 && curfreq * load < freqs[get_freq_id( - freq * 31 / 32, freqs, numfreqs)] * + freq * 31 / 32, freqs, numfreqs)] * cpu_running_mark / 2) { freq = freq * 31 / 32; if (freq < freqs[numfreqs - 1])