lkml.org 
[lkml]   [2011]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/3] PM / Sleep: Make [un]lock_system_sleep() generic
    On 12/05/2011 11:00 PM, Tejun Heo wrote:

    > (cc'ing Oleg)
    >
    > On Mon, Dec 05, 2011 at 10:55:51PM +0530, Srivatsa S. Bhat wrote:
    >> I wanted these APIs to be generic, not restricted to work only for userspace
    >> processes. Both freezer_do_not_count() and freezer_count() are effective only
    >> when current->mm is non-NULL (ie., only for userspace ones).
    >> I think I have documented this in the patch which added these things to the
    >> 2 APIs. See commit 6a76b7a in linux-pm/linux-next.
    >
    > I see. Oleg was curious about the ->mm condition too and IIRC there's
    > no reason for that restriction. Maybe removing that in another patch
    > and using the count functions is better?
    >


    Oh well, then yes, that sounds like a better idea. Will send patches for
    that. Thank you.

    Regards,
    Srivatsa S. Bhat



    \
     
     \ /
      Last update: 2011-12-05 18:45    [W:0.022 / U:91.444 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site