public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adam Kropelin <akropel1@rochester.rr.com>
To: Nigel Cunningham <ncunningham@linuxmail.org>
Cc: Andrew Morton <akpm@digeo.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Suspend2 Merge: Supress various actions/errors while suspending [1/5]
Date: Thu, 16 Sep 2004 22:03:39 -0400	[thread overview]
Message-ID: <20040916220339.A24267@mail.kroptech.com> (raw)
In-Reply-To: <1095378660.5897.98.camel@laptop.cunninghams>; from ncunningham@linuxmail.org on Fri, Sep 17, 2004 at 09:51:03AM +1000

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


  reply	other threads:[~2004-09-17  1:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-16 23:51 [PATCH] Suspend2 Merge: Supress various actions/errors while suspending [1/5] Nigel Cunningham
2004-09-17  2:03 ` Adam Kropelin [this message]
2004-09-17  6:15   ` Nigel Cunningham

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=20040916220339.A24267@mail.kroptech.com \
    --to=akropel1@rochester.rr.com \
    --cc=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ncunningham@linuxmail.org \
    /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