From owner-cvs-src-old@FreeBSD.ORG Tue Nov 16 12:44:00 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63D78106564A for ; Tue, 16 Nov 2010 12:44:00 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 50FB08FC19 for ; Tue, 16 Nov 2010 12:44:00 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oAGCi03k027345 for ; Tue, 16 Nov 2010 12:44:00 GMT (envelope-from avg@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oAGCi0kO027344 for cvs-src-old@freebsd.org; Tue, 16 Nov 2010 12:44:00 GMT (envelope-from avg@repoman.freebsd.org) Message-Id: <201011161244.oAGCi0kO027344@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to avg@repoman.freebsd.org using -f From: Andriy Gapon Date: Tue, 16 Nov 2010 12:43:45 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/x86/cpufreq hwpstate.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2010 12:44:00 -0000 avg 2010-11-16 12:43:45 UTC FreeBSD src repository Modified files: sys/x86/cpufreq hwpstate.c Log: SVN rev 215398 on 2010-11-16 12:43:45Z by avg hwpstate: use CPU_FOREACH when binding to all available processors Also, add a comment mentioning _PSD - on some systems it's enough to put one logical CPU into a particular P-state to make other CPUs in the same domain to enter that P-state. Also, call sched_unbind() after the loop - sched_bind() automatically rebinds from previous CPU to a new one, and the new arrangement of code is safer against early loop exit. Plus one minor style nit. MFC after: 10 days Revision Changes Path 1.3 +8 -12 src/sys/x86/cpufreq/hwpstate.c