From owner-svn-src-head@FreeBSD.ORG Sun May 29 22:37:24 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23749106566C; Sun, 29 May 2011 22:37:24 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 13AEF8FC14; Sun, 29 May 2011 22:37:24 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p4TMbNGX049482; Sun, 29 May 2011 22:37:23 GMT (envelope-from nwhitehorn@svn.freebsd.org) Received: (from nwhitehorn@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p4TMbNRT049480; Sun, 29 May 2011 22:37:23 GMT (envelope-from nwhitehorn@svn.freebsd.org) Message-Id: <201105292237.p4TMbNRT049480@svn.freebsd.org> From: Nathan Whitehorn Date: Sun, 29 May 2011 22:37:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r222469 - head/sys/powerpc/powermac X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2011 22:37:24 -0000 Author: nwhitehorn Date: Sun May 29 22:37:23 2011 New Revision: 222469 URL: http://svn.freebsd.org/changeset/base/222469 Log: Use kproc_exit() instead of returning from the management function on systems with no manageable thermal control devices. Modified: head/sys/powerpc/powermac/powermac_thermal.c Modified: head/sys/powerpc/powermac/powermac_thermal.c ============================================================================== --- head/sys/powerpc/powermac/powermac_thermal.c Sun May 29 21:24:20 2011 (r222468) +++ head/sys/powerpc/powermac/powermac_thermal.c Sun May 29 22:37:23 2011 (r222469) @@ -79,7 +79,7 @@ fan_management_proc(void) { /* Nothing to manage? */ if (SLIST_EMPTY(&fans)) - return; + kproc_exit(0); while (1) { pmac_therm_manage_fans();