mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Add IPMI poweroff control to sysfs
@ 2005-09-26 19:30 Corey Minyard
  0 siblings, 0 replies; only message in thread
From: Corey Minyard @ 2005-09-26 19:30 UTC (permalink / raw)
  To: linux-kernel, Andrew Morton; +Cc: Matt Domsch

[-- Attachment #1: Type: text/plain, Size: 70 bytes --]

Is it possible to get this into 2.6.14?  It's a fairly simple change.

[-- Attachment #2: ipmi-poweroff-parm-in-sysfs.patch --]
[-- Type: text/x-patch, Size: 898 bytes --]

Put the IPMI poweroff_powercycle parameter into sysfs.  This
field is dynamically settable and is valuable to have in sysfs.

Signed-off-by: Corey Minyard <minyard@acm.org>

Index: linux-2.6.14-rc2/drivers/char/ipmi/ipmi_poweroff.c
===================================================================
--- linux-2.6.14-rc2.orig/drivers/char/ipmi/ipmi_poweroff.c
+++ linux-2.6.14-rc2/drivers/char/ipmi/ipmi_poweroff.c
@@ -55,7 +55,7 @@ extern void (*pm_power_off)(void);
 static int poweroff_powercycle;
 
 /* parameter definition to allow user to flag power cycle */
-module_param(poweroff_powercycle, int, 0);
+module_param(poweroff_powercycle, int, 0644);
 MODULE_PARM_DESC(poweroff_powercycles, " Set to non-zero to enable power cycle instead of power down. Power cycle is contingent on hardware support, otherwise it defaults back to power down.");
 
 /* Stuff from the get device id command. */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-26 19:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-26 19:30 Add IPMI poweroff control to sysfs Corey Minyard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®