lkml.org 
[lkml]   [2012]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] cpuidle: coupled: fix sleeping while atomic in cpu notifier
    On Thu, Jul 26, 2012 at 9:25 AM, Shilimkar, Santosh
    <santosh.shilimkar@ti.com> wrote:
    > On Wed, Jul 25, 2012 at 11:20 PM, Colin Cross <ccross@android.com> wrote:
    >> The cpu hotplug notifier gets called in both atomic and non-atomic
    >> contexts, it is not always safe to lock a mutex. Filter out all events
    >> except the six necessary ones, which are all sleepable, before taking
    >> the mutex.
    >>
    >> Signed-off-by: Colin Cross <ccross@android.com>
    >> ---
    > Agree.
    > Have you observed any lock-up ?
    >
    Colin explained me about cause of the issue in an off-list discussion.
    Thought of updating the thread in case some one wants to reproduce the
    issue. You get a warning during cpu hotplug in suspend if you turn on
    sleeping while atomic debugging option in kernel build and the patch
    fixes it.

    Regards
    Santosh


    \
     
     \ /
      Last update: 2012-07-27 01:41    [W:0.026 / U:1.820 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site