Re: Allow userspace do something special on overtemp

From: Dax Kelson
Date: Wed Aug 11 2004 - 19:58:55 EST


On Wed, 2004-08-11 at 02:53, Pavel Machek wrote:
> Hi!
>
> This patch cleans up thermal.c a bit, and adds possibility to react to
> critical overtemp: it tries to call /sbin/overtemp, and only if that
> fails calls /sbin/poweroff.
>
> Could it be applied?
> Pavel

Why invent Yet-Another-Call-To-Userland-Interface when either
hotplug/dbus, netlink or an ACPI event will do?

The argument "well what if hotplug of acpid don't know what to do" is,
IMO, bogus since:

* Obviously systems today are functioning
* Hardware will poweroff off on overheat anyway (not graceful, but will
save hardware components)
* Teaching hotplug/apcid isn't hard
* Policy should be kept out of the kernel if at all possible

Dax

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/