diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-05-29 22:37:23 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-05-29 22:37:23 +0000 |
commit | f73329b53a0768c8355b73d5ff5adf76b0fc9cdc (patch) | |
tree | e58e5858fc4ba0cbf1fe84b25a9264feeab74486 /sys/powerpc | |
parent | 01ac457c3892a998ce8a699cad333e08b5021e6c (diff) | |
download | FreeBSD-src-f73329b53a0768c8355b73d5ff5adf76b0fc9cdc.zip FreeBSD-src-f73329b53a0768c8355b73d5ff5adf76b0fc9cdc.tar.gz |
Use kproc_exit() instead of returning from the management function on
systems with no manageable thermal control devices.
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/powermac/powermac_thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/powermac/powermac_thermal.c b/sys/powerpc/powermac/powermac_thermal.c index 2d29d42..1b03072 100644 --- a/sys/powerpc/powermac/powermac_thermal.c +++ b/sys/powerpc/powermac/powermac_thermal.c @@ -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(); |