From: Stefan Scheler <sscheler@suse.de>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] snd-bt-sco.ko and ACPI suspend
Date: Sat, 11 Mar 2006 12:47:39 +0100 [thread overview]
Message-ID: <4412B8DB.1080508@suse.de> (raw)
In-Reply-To: <441223BD.8000903@xmission.com>
[-- Attachment #1.1: Type: text/plain, Size: 319 bytes --]
> Can you give me a safer patch that will work with 2.6.12 for example?
Well, yes. I also removed the unnecessary CONFIG_PM-define.
try_to_freeze() is also available with power management disabled as I
found out. The following patch has been tested with 2.6.11.4 and I
didn't notice any ill effects.
Stefan
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: fix_suspend_v2.diff --]
[-- Type: text/x-patch; name="fix_suspend_v2.diff", Size: 433 bytes --]
diff -ru btsco.orig/kernel/btsco.c btsco/kernel/btsco.c
--- btsco.orig/kernel/btsco.c 2006-03-11 11:52:08.000000000 +0100
+++ btsco/kernel/btsco.c 2006-03-11 11:52:57.000000000 +0100
@@ -892,8 +892,11 @@
do {
-#ifdef CONFIG_PM
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,12))
try_to_freeze();
+#else
+ if (current->flags & PF_FREEZE)
+ refrigerator(PF_FREEZE);
#endif
if (signal_pending(current))
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
next prev parent reply other threads:[~2006-03-11 11:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-10 12:29 [Bluez-devel] snd-bt-sco.ko and ACPI suspend Stefan Scheler
2006-03-10 12:58 ` David Woodhouse
2006-03-11 0:53 ` Brad Midgley
2006-03-11 1:11 ` Brad Midgley
2006-03-11 11:47 ` Stefan Scheler [this message]
2006-03-11 15:23 ` Brad Midgley
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=4412B8DB.1080508@suse.de \
--to=sscheler@suse.de \
--cc=bluez-devel@lists.sourceforge.net \
/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;
as well as URLs for NNTP newsgroup(s).