From: Geoff Levand <geoffrey.levand@am.sony.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] add machine state register support
Date: Tue, 24 May 2005 10:39:38 -0700 [thread overview]
Message-ID: <429366DA.4000702@am.sony.com> (raw)
In-Reply-To: <1116892416.30513.10.camel@gaston>
Benjamin Herrenschmidt wrote:
> On Mon, 2005-05-23 at 16:40 -0700, Geoff Levand wrote:
>
>>This patch adds routines to get and set the machine state register. These
>>are needed by power management code on some platforms.
>>
>>Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> for CELF
>
>
> Hi Geoff !
>
> Can you tell me more about this power management code ? I tend to think
> that code that wants to do more than just using the existing accessors
> should be written in assembly...
>
> Also, there is already
>
> void _nmask_and_or_msr(unsigned long nmask, unsigned long or_val);
>
> That you can use for manipulating MSR bits.
>
> Finally, I tend to prefer such small register accessors to be written as
> inline assembly in some headers. But then, I don't think you actually
> need to add anything here.
>
Sorry for the trouble, Geert is right, there are already mfmsr() and
mtmsr() in <ppc-asm/reg.h>. I found get_msr in ppc64 and assumed they
were missing for ppc. I should have looked more carefully.
-Geoff
next prev parent reply other threads:[~2005-05-24 17:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-23 23:40 [PATCH] add machine state register support Geoff Levand
2005-05-23 23:53 ` Benjamin Herrenschmidt
2005-05-24 17:39 ` Geoff Levand [this message]
2005-05-24 17:05 ` Geert Uytterhoeven
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=429366DA.4000702@am.sony.com \
--to=geoffrey.levand@am.sony.com \
--cc=benh@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.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 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.