• Arjan van de Ven's avatar
    [PATCH] maximum latency tracking infrastructure · 5c87579e
    Arjan van de Ven authored
    Add infrastructure to track "maximum allowable latency" for power saving
    policies.
    
    The reason for adding this infrastructure is that power management in the
    idle loop needs to make a tradeoff between latency and power savings
    (deeper power save modes have a longer latency to running code again).  The
    code that today makes this tradeoff just does a rather simple algorithm;
    however this is not good enough: There are devices and use cases where a
    lower latency is required than that the higher power saving states provide.
     An example would be audio playback, but another example is the ipw2100
    wireless driver that right now has a very direct and ugly acpi hook to
    disable some higher power states randomly when it gets certain types of
    error.
    
    The proposed solution is to have an interface where drivers can
    
    * announce the maximum latency (in microseconds) that they can deal with
    * modify this latency
    * give up their constraint
    
    and a function where the code that d...
    5c87579e
latency.c 8.37 KB