[Top] [All Lists]

Re: FW: Alchemy power managment code.

To: Ralf Baechle <>
Subject: Re: FW: Alchemy power managment code.
From: Sergei Shtylyov <>
Date: Fri, 28 Mar 2008 14:36:08 +0300
Cc:, Nico Coesel <>
In-reply-to: <>
Organization: MontaVista Software Inc.
Original-recipient: rfc822;
References: <> <> <> <>
User-agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.2) Gecko/20040803

Ralf Baechle wrote:

>    The TOY cpunter 0 clockevent driver is also need to be written for

the recent kernel as CP0 timer stops ticking after wait insn is executed -- see arch/mips/au1000/common/time.c...

And here's found another possible issue with Alchemy PM -- the CP0 counter counts at unpredictable frequency in idle state (after executing "wait"), so the MIPS clocksource will probably be unstable?

Correct - and cevt-r4k won't be usable either.  I guess that means you
leave the user the choice between either these two or using wait.  Not
nice but ...

The Alchemy code doesn't even try to use CP0 counter when CONFIG_PM=y if you look into arch/mips/au1000/common/time.c... or at least it didn't before Atsushi removed do_fast_pm_gettimeoffset().


WBR, Sergei

<Prev in Thread] Current Thread [Next in Thread>