2004-06-16 01:13:25

by Todd Poynor

[permalink] [raw]
Subject: [PATCH] Export pm_suspend

Allow modules to request system suspend via the in-kernel interface, if
desired.

--- linux-2.6.7-rc3-orig/kernel/power/main.c 2004-06-09 12:30:50.000000000 -0700
+++ linux-2.6.7-rc3-pm/kernel/power/main.c 2004-06-15 17:08:43.321439984 -0700
@@ -257,3 +257,5 @@
}

core_initcall(pm_init);
+
+EXPORT_SYMBOL(pm_suspend);


From: Dmitry Vorobiev <[email protected]>
Signed-off-by: Todd Poynor <[email protected]>


2004-06-16 04:09:44

by Greg KH

[permalink] [raw]
Subject: Re: [PATCH] Export pm_suspend

On Tue, Jun 15, 2004 at 06:13:11PM -0700, Todd Poynor wrote:
> Allow modules to request system suspend via the in-kernel interface, if
> desired.

And who would be so desiring? I don't see any in-kernel code that needs
this. Care to also submit the code that needs this?

thanks,

greg k-h

2004-06-16 19:35:21

by Todd Poynor

[permalink] [raw]
Subject: Re: [PATCH] Export pm_suspend

Greg KH wrote:
> On Tue, Jun 15, 2004 at 06:13:11PM -0700, Todd Poynor wrote:
>
>>Allow modules to request system suspend via the in-kernel interface, if
>>desired.
>
>
> And who would be so desiring? I don't see any in-kernel code that needs
> this. Care to also submit the code that needs this?

Sorry, my botched phrasing was intended to read more like "if this would
be viewed as a good thing". Since pm_suspend is the "externally visible
function for suspending system" it seems it might be proper to export it
for module use as well, much like various APM and software suspend
functions in the same directory. We only have test code that uses this,
so no big deal on our part; I'll send out a call to some designers who
are building embedded gadgets using pm_suspend() to see if anybody has
interest in this and code to go along with it. Thanks -- Todd