Date: Fri, 27 Mar 2015 09:04:32 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r280752 - stable/9/usr.sbin/powerd Message-ID: <201503270904.t2R94WFI031515@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Fri Mar 27 09:04:31 2015 New Revision: 280752 URL: https://svnweb.freebsd.org/changeset/base/280752 Log: MFC r280286: Add comment explaining existing powerd behavior on SMP systems. Modified: stable/9/usr.sbin/powerd/powerd.c Directory Properties: stable/9/ (props changed) stable/9/usr.sbin/ (props changed) stable/9/usr.sbin/powerd/ (props changed) Modified: stable/9/usr.sbin/powerd/powerd.c ============================================================================== --- stable/9/usr.sbin/powerd/powerd.c Fri Mar 27 09:01:25 2015 (r280751) +++ stable/9/usr.sbin/powerd/powerd.c Fri Mar 27 09:04:31 2015 (r280752) @@ -126,6 +126,12 @@ static int devd_pipe = -1; #define DEVD_RETRY_INTERVAL 60 /* seconds */ static struct timeval tried_devd; +/* + * This function returns summary load of all CPUs. It was made so + * intentionally to not reduce performance in scenarios when several + * threads are processing requests as a pipeline -- running one at + * a time on different CPUs and waiting for each other. + */ static int read_usage_times(int *load) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503270904.t2R94WFI031515>