svn commit: r222469 - head/sys/powerpc/powermac

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sun May 29 22:37:24 UTC 2011


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();


More information about the svn-src-head mailing list