lkml.org 
[lkml]   [2003]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Small cleanups for input
Hi!

> This needs to be migrated to the new power management code.

What exactly should it do? Suspend machine? Then it needs to do
equivalent of "echo 3 > /proc/acpi/sleep", but I do not think we have
generic interface for that...

Perhaps some comment should be put there?
Pavel

> > ===================================================================
> > --- linux.orig/drivers/input/power.c 2003-06-24 11:54:39.000000000 +0200
> > +++ linux/drivers/input/power.c 2003-04-18 16:19:02.000000000 +0200
> > @@ -45,9 +45,7 @@
> > static int suspend_button_pushed = 0;
> > static void suspend_button_task_handler(void *data)
> > {
> > - //extern void pm_do_suspend(void);
> > udelay(200); /* debounce */
> > - //pm_do_suspend();
> > suspend_button_pushed = 0;
> > }
> >
> > @@ -67,8 +65,6 @@
> > case KEY_SUSPEND:
> > printk("Powering down entire device\n");
> >
> > - //pm_send_all(PM_SUSPEND, dev);
> > -
> > if (!suspend_button_pushed) {
> > suspend_button_pushed = 1;
> > schedule_work(&suspend_button_task);
> >
> >
>

--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.052 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site