Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 May 2011 22:37:23 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222469 - head/sys/powerpc/powermac
Message-ID:  <201105292237.p4TMbNRT049480@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105292237.p4TMbNRT049480>