[lkml]   [2012]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Video : Amba: Use in_interrupt() in clcdfb_sleep().
    On Sun, Mar 11, 2012 at 2:14 PM, santosh nayak
    <> wrote:
    > From: Santosh Nayak <>
    > 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...


     \ /
      Last update: 2012-03-11 14:25    [W:0.020 / U:36.864 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site