public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Export pm_suspend
@ 2004-06-16  1:13 Todd Poynor
  2004-06-16  4:08 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Todd Poynor @ 2004-06-16  1:13 UTC (permalink / raw)
  To: greg, linux-kernel

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 <dvorobiev@ru.mvista.com>
Signed-off-by: Todd Poynor <tpoynor@mvista.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Export pm_suspend
  2004-06-16  1:13 [PATCH] Export pm_suspend Todd Poynor
@ 2004-06-16  4:08 ` Greg KH
  2004-06-16 19:35   ` Todd Poynor
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2004-06-16  4:08 UTC (permalink / raw)
  To: Todd Poynor; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Export pm_suspend
  2004-06-16  4:08 ` Greg KH
@ 2004-06-16 19:35   ` Todd Poynor
  0 siblings, 0 replies; 3+ messages in thread
From: Todd Poynor @ 2004-06-16 19:35 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-16 19:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-16  1:13 [PATCH] Export pm_suspend Todd Poynor
2004-06-16  4:08 ` Greg KH
2004-06-16 19:35   ` Todd Poynor

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