• Ulf Hansson's avatar
    PM: domains: Allow to abort power off when no ->power_off() callback · f63816e4
    Ulf Hansson authored
    In genpd_power_off() we may decide to abort the power off of the PM domain,
    even beyond the point when the governor would accept it. The abort is done
    if it turns out that a child domain has been requested to be powered on,
    which means it's waiting for the lock of the parent to be released.
    
    However, the abort is currently only considered if the genpd in question
    has a ->power_off() callback assigned. This is unnecessary limiting,
    especially if the genpd would have a parent of its own. Let's remove the
    limitation and make the behaviour consistent.
    Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
    [ rjw: Subject edit ]
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    f63816e4
domain.c 76.5 KB