summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>2012-09-28 20:27:49 +0800
committerFengguang Wu <fengguang.wu@intel.com>2012-09-28 20:27:49 +0800
commit2f60d628ffd042e65e0b1d3431fb3e38d6f7c1be (patch)
treeab0abd6f9936db1441382f862028a4c22b7239e1 /scripts
parent0e2f2b23672055e1301c11509d5b8eda7b718d8e (diff)
downloadlinux-3.10-2f60d628ffd042e65e0b1d3431fb3e38d6f7c1be.tar.gz
linux-3.10-2f60d628ffd042e65e0b1d3431fb3e38d6f7c1be.tar.bz2
linux-3.10-2f60d628ffd042e65e0b1d3431fb3e38d6f7c1be.zip
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 <srivatsa.bhat@linux.vnet.ibm.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions