From: Ralf Baechle <ralf@linux-mips.org>
To: Aurelien Jarno <aurelien@aurel32.net>
Cc: linux-mips@linux-mips.org
Subject: Re: MIPS 20Kc and WAIT instruction
Date: Tue, 12 Jun 2007 11:18:59 +0100 [thread overview]
Message-ID: <20070612101859.GA29075@linux-mips.org> (raw)
In-Reply-To: <466D1BBF.6030403@aurel32.net>
On Mon, Jun 11, 2007 at 11:54:07AM +0200, Aurelien Jarno wrote:
> The latest kernels from kernel.org or linux-mips.org do not enter low
> power mode when the CPU is idle on a MIPS 20Kc CPU.
>
> Looking at the code in arch/mips/kernel/cpu-probe.c, the "case"
> corresponding to the 20Kc CPU is commented out:
>
> case CPU_5KC:
> /* case CPU_20KC:*/
> case CPU_24K:
>
> According to the datasheet this CPU supports the WAIT instruction, so I
> don't really understand why it is disabled in the kernel. Does anybody
> know why?
CPU_20KC is MIPS64 so by definition supports a WAIT instruction - even
though an implementation would be legal as per architecture spec.
As for why it's commented out, I don't know. The original patch to add
support was submitted by Carsten Langgaard (ex-carstenl@mips.com) in 2002
and already had the CPU_20KC commented out. As for why one would do
something like that - my guess is as good as your's :-) Trying to find
out more.
Ralf
prev parent reply other threads:[~2007-06-12 10:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-11 9:54 MIPS 20Kc and WAIT instruction Aurelien Jarno
2007-06-12 10:18 ` Ralf Baechle [this message]
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=20070612101859.GA29075@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=aurelien@aurel32.net \
--cc=linux-mips@linux-mips.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