Author: mav
Date: Fri Mar 27 09:01:25 2015
New Revision: 280751
URL: https://svnweb.freebsd.org/changeset/base/280751

Log:
  MFC r280286: Add comment explaining existing powerd behavior on SMP systems.

Modified:
  stable/10/usr.sbin/powerd/powerd.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/powerd/powerd.c
==============================================================================
--- stable/10/usr.sbin/powerd/powerd.c  Fri Mar 27 08:59:21 2015        
(r280750)
+++ stable/10/usr.sbin/powerd/powerd.c  Fri Mar 27 09:01:25 2015        
(r280751)
@@ -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)
 {
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to