[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFLxGvygW=DeSQbRq8Wbcdy5E3e4vYcN666_9oWgnuwzT1WKqw@mail.gmail.com>
Date: Sun, 11 Mar 2012 14:22:57 +0100
From: richard -rw- weinberger <richard.weinberger@...il.com>
To: santosh nayak <santoshprasadnayak@...il.com>
Cc: linux@....linux.org.uk, FlorianSchandinat@....de,
linux-fbdev@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] Video : Amba: Use in_interrupt() in clcdfb_sleep().
On Sun, Mar 11, 2012 at 2:14 PM, santosh nayak
<santoshprasadnayak@...il.com> wrote:
> From: Santosh Nayak <santoshprasadnayak@...il.com>
>
> Instead of "in_atomic()", we can use in_interrupt() to check whether
> its an interrupt context.
What is the benefit?
Your change turns clcdfb_sleep() into a ticking bomb.
If clcdfb_sleep() is called from an atomic section (e.g. under a
spinlock) it will call msleep()
and the whole thing explodes...
--
Thanks,
//richard
--
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