From: akpm@linux-foundation.org
To: shaohua.li@intel.com, dtor@mail.ru, lenb@kernel.org,
pavel@ucw.cz, rjw@sisk.pl, mm-commits@vger.kernel.org
Subject: - pm-serio-speed-up-resume.patch removed from -mm tree
Date: Mon, 21 Jul 2008 14:30:09 -0700 [thread overview]
Message-ID: <200807212130.m6LLU9kC025488@imap1.linux-foundation.org> (raw)
The patch titled
pm: serio: speed up resume
has been removed from the -mm tree. Its filename was
pm-serio-speed-up-resume.patch
This patch was dropped because conflicting code has been merged into linux-next
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: pm: serio: speed up resume
From: Shaohua Li <shaohua.li@intel.com>
Subject: serio: Speed-up resume
serio_resume will call into psmouse_extensions(). In my test, the
routine is very slow, it blocks resume about 1 sec. Below patch (move
resume to kseriod, just like boot time probe) cures the issue in my
test, and seems no side effect. I'm no familiar with serio driver, so
please check.
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Acked-by: Len Brown <lenb@kernel.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Dmitry Torokhov <dtor@mail.ru>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/input/serio/serio.c | 33 +++++++++++++++++++++++++--------
1 file changed, 25 insertions(+), 8 deletions(-)
diff -puN drivers/input/serio/serio.c~pm-serio-speed-up-resume drivers/input/serio/serio.c
--- a/drivers/input/serio/serio.c~pm-serio-speed-up-resume
+++ a/drivers/input/serio/serio.c
@@ -163,6 +163,7 @@ enum serio_event_type {
SERIO_RECONNECT_PORT,
SERIO_REGISTER_PORT,
SERIO_ATTACH_DRIVER,
+ SERIO_RESUME_PORT,
};
struct serio_event {
@@ -287,6 +288,13 @@ static struct serio_event *serio_get_eve
return event;
}
+#ifdef CONFIG_PM
+static void serio_resume_port(struct device *dev);
+#else
+static inline void serio_resume_port(struct device *dev)
+{
+}
+#endif /* CONFIG_PM */
static void serio_handle_event(void)
{
struct serio_event *event;
@@ -319,6 +327,10 @@ static void serio_handle_event(void)
serio_attach_driver(event->object);
break;
+ case SERIO_RESUME_PORT:
+ serio_resume_port(event->object);
+ break;
+
default:
break;
}
@@ -925,21 +937,26 @@ static int serio_suspend(struct device *
return 0;
}
-static int serio_resume(struct device *dev)
+static void serio_resume_port(struct device *dev)
{
struct serio *serio = to_serio_port(dev);
- if (dev->power.power_state.event != PM_EVENT_ON &&
- serio_reconnect_driver(serio)) {
- /*
- * Driver re-probing can take a while, so better let kseriod
- * deal with it.
- */
- serio_rescan(serio);
+ if (serio_reconnect_driver(serio)) {
+ serio_disconnect_port(serio);
+ serio_find_driver(serio);
}
dev->power.power_state = PMSG_ON;
+}
+static int serio_resume(struct device *dev)
+{
+ /*
+ * Driver reconnect can take a while, so better let kseriod
+ * deal with it.
+ */
+ if (dev->power.power_state.event != PM_EVENT_ON)
+ serio_queue_event(dev, NULL, SERIO_RESUME_PORT);
return 0;
}
#endif /* CONFIG_PM */
_
Patches currently in -mm which might be from shaohua.li@intel.com are
origin.patch
linux-next.patch
git-input.patch
pm-serio-speed-up-resume.patch
pm-acpi-hibernation-utilize-hardware-signature.patch
pm-acpi-hibernation-utilize-hardware-signaturepatch-causes-build-error.patch
reply other threads:[~2008-07-21 21:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200807212130.m6LLU9kC025488@imap1.linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=dtor@mail.ru \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=rjw@sisk.pl \
--cc=shaohua.li@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox