Re: [PATCH] Suspend2 Merge: Supress various actions/errors while suspending [1/5]
From: Adam Kropelin (akropel1_at_rochester.rr.com)
Date: 09/17/04
- Previous message: NIWA Hideyuki: "might_sleep in aic79xx scsi driver code of 2.6.5"
- In reply to: Nigel Cunningham: "[PATCH] Suspend2 Merge: Supress various actions/errors while suspending [1/5]"
- Next in thread: Nigel Cunningham: "Re: [PATCH] Suspend2 Merge: Supress various actions/errors while suspending [1/5]"
- Reply: Nigel Cunningham: "Re: [PATCH] Suspend2 Merge: Supress various actions/errors while suspending [1/5]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 16 Sep 2004 22:03:39 -0400 To: Nigel Cunningham <ncunningham@linuxmail.org>
On Fri, Sep 17, 2004 at 09:51:03AM +1000, Nigel Cunningham wrote:
> +#ifdef CONFIG_SOFTWARE_SUSPEND2
> + if (software_suspend_state & SOFTWARE_SUSPEND_RUNNING)
> + return;
> +#endif
> spin_lock(&oom_lock);
> now = jiffies;
> since = now - last;
Any chance you could...
#ifdef CONFIG_SOFTWARE_SUSPEND2
<whatever-it-is-now>
#else
#define software_suspend_state 0
#endif
...and thereby eliminate all the #ifdefs in the main codepaths?
--Adam
-
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/
- Previous message: NIWA Hideyuki: "might_sleep in aic79xx scsi driver code of 2.6.5"
- In reply to: Nigel Cunningham: "[PATCH] Suspend2 Merge: Supress various actions/errors while suspending [1/5]"
- Next in thread: Nigel Cunningham: "Re: [PATCH] Suspend2 Merge: Supress various actions/errors while suspending [1/5]"
- Reply: Nigel Cunningham: "Re: [PATCH] Suspend2 Merge: Supress various actions/errors while suspending [1/5]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|