From: Russell King Date: Mon, 20 Dec 2010 14:28:02 +0000 (+0000) Subject: ARM: localtimer: clean up local timer on hot unplug X-Git-Tag: v2.6.38-rc1~471^2~2^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10034aabca9032246762daaca3152f3e79380ea0;p=pandora-kernel.git ARM: localtimer: clean up local timer on hot unplug 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: Russell King --- Reading git-diff-tree failed