From: Srivatsa S. Bhat Date: Fri, 28 Sep 2012 12:27:49 +0000 (+0800) Subject: CPU hotplug, writeback: Don't call writeback_set_ratelimit() too often during hotplug X-Git-Tag: v3.7-rc1~44^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f60d628ffd042e65e0b1d3431fb3e38d6f7c1be;p=pandora-kernel.git CPU hotplug, writeback: Don't call writeback_set_ratelimit() too often during hotplug The CPU hotplug callback related to writeback calls writeback_set_ratelimit() during every state change in the hotplug sequence. This is unnecessary since num_online_cpus() changes only once during the entire hotplug operation. So invoke the function only once per hotplug, thereby avoiding the unnecessary repetition of those costly calculations. Signed-off-by: Srivatsa S. Bhat --- Reading git-diff-tree failed