• Russell King's avatar
    ARM: localtimer: clean up local timer on hot unplug · 10034aab
    Russell King authored
    When a CPU is hot unplugged, the generic tick code cleans up the
    clock event device, but fails to call down to the device's set_mode
    function to actually shut the device down.
    
    To work around this, we've historically had a local_timer_stop()
    callback out of the hotplug code.  However, this adds needless
    complexity when we have the clock event device itself available.
    
    Explicitly call the clock event device's set_mode function with
    CLOCK_EVT_MODE_UNUSED, so that the hardware can be cleanly shutdown
    without any special external callbacks.  When/if the generic code
    is fixed, percpu_timer_stop() can be killed off.
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    10034aab
smp_twd.h 688 Bytes