All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Jackson <pj@sgi.com>
To: ebiederm@xmission.com (Eric W. Biederman)
Cc: miklos@szeredi.hu, akpm@osdl.org, linux-kernel@vger.kernel.org,
	rth@twiddle.net, davej@redhat.com, zwane@arm.linux.org.uk,
	ak@suse.de, ashok.raj@intel.com
Subject: Re: [PATCH] move pm_power_off and pm_idle declaration to common code
Date: Mon, 12 Dec 2005 07:58:47 -0800	[thread overview]
Message-ID: <20051212075847.99a2591c.pj@sgi.com> (raw)
In-Reply-To: <m1pso29z37.fsf@ebiederm.dsl.xmission.com>

> A key question is how do we handle architectures
> that always want to want to call machine_power_off.

One common way to handle a generic default with possible arch specific
overrides is with #ifdef symbols.  Surround the generic definition with
something like "#ifndef ARCH_HAS_PM_POWER_OFF", and let the arch's that
want something other than the default define that preprocessor symbol
as well.

-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <pj@sgi.com> 1.925.600.0401

  parent reply	other threads:[~2005-12-12 15:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-12 14:02 [PATCH] move pm_power_off and pm_idle declaration to common code Miklos Szeredi
2005-12-12 14:20 ` Eric W. Biederman
2005-12-12 14:28   ` Miklos Szeredi
2005-12-12 14:36     ` Eric W. Biederman
2005-12-12 14:39     ` Andreas Schwab
2005-12-12 14:46       ` Miklos Szeredi
2005-12-12 14:54         ` Eric W. Biederman
2005-12-12 15:58   ` Paul Jackson [this message]
2005-12-12 15:26 ` [PATCH] uml: fix pm_power_off link failure Miklos Szeredi

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=20051212075847.99a2591c.pj@sgi.com \
    --to=pj@sgi.com \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=ashok.raj@intel.com \
    --cc=davej@redhat.com \
    --cc=ebiederm@xmission.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    --cc=rth@twiddle.net \
    --cc=zwane@arm.linux.org.uk \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.