diff options
author | Mark Brown <broonie@linaro.org> | 2013-10-07 06:46:56 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-07 06:46:56 -0400 |
commit | 9f9e4266a66b6f9dcde305e85035615c06bdb7f7 (patch) | |
tree | c6f867c7a1bf94a3b4f13b19a9ce442c7aec9e79 /block/cfq-iosched.c | |
parent | bf551413038f74343ec4d1413c3610e2362d0aeb (diff) | |
parent | 249ce1387b7739dbea2ac1a697e4bf1e37ec06b7 (diff) |
Merge remote-tracking branch 'asoc/topic/dapm' into asoc-twl6040
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r-- | block/cfq-iosched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index dabb9d02cf9a..434944cbd761 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -1803,7 +1803,7 @@ static u64 cfqg_prfill_avg_queue_size(struct seq_file *sf, | |||
1803 | 1803 | ||
1804 | if (samples) { | 1804 | if (samples) { |
1805 | v = blkg_stat_read(&cfqg->stats.avg_queue_size_sum); | 1805 | v = blkg_stat_read(&cfqg->stats.avg_queue_size_sum); |
1806 | do_div(v, samples); | 1806 | v = div64_u64(v, samples); |
1807 | } | 1807 | } |
1808 | __blkg_prfill_u64(sf, pd, v); | 1808 | __blkg_prfill_u64(sf, pd, v); |
1809 | return 0; | 1809 | return 0; |
@@ -4358,7 +4358,7 @@ static int cfq_init_queue(struct request_queue *q, struct elevator_type *e) | |||
4358 | if (!eq) | 4358 | if (!eq) |
4359 | return -ENOMEM; | 4359 | return -ENOMEM; |
4360 | 4360 | ||
4361 | cfqd = kmalloc_node(sizeof(*cfqd), GFP_KERNEL | __GFP_ZERO, q->node); | 4361 | cfqd = kzalloc_node(sizeof(*cfqd), GFP_KERNEL, q->node); |
4362 | if (!cfqd) { | 4362 | if (!cfqd) { |
4363 | kobject_put(&eq->kobj); | 4363 | kobject_put(&eq->kobj); |
4364 | return -ENOMEM; | 4364 | return -ENOMEM; |