• Stephen Rothwell's avatar
    [PATCH] Trivial APM update part 1 · e10542c9
    Stephen Rothwell authored
    This is the first of a series of patches I have got from Thomas Hood
    that modify the apm code mainly for better self documentation.
    
    This one does:
    
    Variable "waiting_for_resume" is renamed 'ignore_sys_suspend'.
    The reason for the change is that this flag variable is
    employed in a manner analogous to that of other flag variables
    named 'ignore ...'.  When the flag is set, the driver needs to
    ignore further system suspends.  The driver does not "wait"
    in the usual sense of that word.  The only sense in which the
    driver waits is the sense in which it needs to continue to
    ignore system suspends until certain events occur.  One such
    event is a resume.  However, another such event is the vetoing
    of the suspend request by a driver.  So it would be more
    accurate to call the flag 'waiting_for_resume_or_suspend_reject'
    or something like that.  But for the reason mentioned first,
    an even better name is 'ignore_sys_suspend'.
    e10542c9
apm.c 56.4 KB