Date: Fri, 20 Mar 2015 15:07:06 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r280286 - head/usr.sbin/powerd Message-ID: <201503201507.t2KF76gZ084857@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Fri Mar 20 15:07:05 2015 New Revision: 280286 URL: https://svnweb.freebsd.org/changeset/base/280286 Log: Add comment explaining existing powerd behavior on SMP systems. MFC after: 1 week Modified: head/usr.sbin/powerd/powerd.c Modified: head/usr.sbin/powerd/powerd.c ============================================================================== --- head/usr.sbin/powerd/powerd.c Fri Mar 20 14:25:51 2015 (r280285) +++ head/usr.sbin/powerd/powerd.c Fri Mar 20 15:07:05 2015 (r280286) @@ -127,6 +127,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?201503201507.t2KF76gZ084857>