[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOZdJXVvNBR-qf7LXNOHZVstH_Rebxwn-wAkSaBS53Wn55mYCw@mail.gmail.com>
Date: Wed, 31 Jul 2013 18:44:58 -0500
From: Timur Tabi <timur@...i.org>
To: Stephen Boyd <sboyd@...eaurora.org>
Cc: Arpit Goel <B44344@...escale.com>, linux@....linux.org.uk,
takata@...ux-m32r.org, philb@....org,
Geert Uytterhoeven <geert@...ux-m68k.org>,
schwidefsky@...ibm.com, heiko.carstens@...ibm.com,
linux390@...ibm.com, David Miller <davem@...emloft.net>,
Rob Herring <rob.herring@...xeda.com>,
Arnd Bergmann <arnd@...db.de>,
Stephen Warren <swarren@...dia.com>, john.stultz@...aro.org,
jesper.nilsson@...s.com, gregkh@...uxfoundation.org,
sam@...nborg.org,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
lkml <linux-kernel@...r.kernel.org>,
linux-m32r@...linux-m32r.org, linux-m32r-ja@...linux-m32r.org,
linux-m68k@...r.kernel.org, linux-s390@...r.kernel.org,
sparclinux@...r.kernel.org, mattw@...eaurora.org
Subject: Re: [PATCH 2/2] Convert PowerPC macro spin_event_timeout() to
architecture independent macro
On Wed, Jul 31, 2013 at 2:16 AM, Stephen Boyd <sboyd@...eaurora.org> wrote:
>
> What do you do here if jiffies aren't incrementing (i.e
> interrupts are disabled). The time_before() check won't work
> there and it would be nice if we were able to use this in such
> situations. I think powerpc gets around this by reading the
> hardware timer directly?
I believe that jiffies is always a global variable. It should behave
the same on PowerPC as on other architectures.
The answer to your question is that you should not use
spin_event_timeout() in interrupt context, because it yields.
(FYI, I'm the author of spin_event_timeout(), so please CC: me on all
changes to it)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists