aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/powerd
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2015-03-20 15:07:05 +0000
committerAlexander Motin <mav@FreeBSD.org>2015-03-20 15:07:05 +0000
commit0e2a18e657664b461e8394fff487c1d5c355f403 (patch)
tree9dd60ff3a925989f421a82c269332144ddc18de2 /usr.sbin/powerd
parente5e85011aeb681ad7134250fd9418e0f6482c7d4 (diff)
downloadsrc-0e2a18e657664b461e8394fff487c1d5c355f403.tar.gz
src-0e2a18e657664b461e8394fff487c1d5c355f403.zip
Add comment explaining existing powerd behavior on SMP systems.
MFC after: 1 week
Notes
Notes: svn path=/head/; revision=280286
Diffstat (limited to 'usr.sbin/powerd')
-rw-r--r--usr.sbin/powerd/powerd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/powerd/powerd.c b/usr.sbin/powerd/powerd.c
index 3f628f6a30c9..367a31f41c58 100644
--- a/usr.sbin/powerd/powerd.c
+++ b/usr.sbin/powerd/powerd.c
@@ -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)
{