]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - block/bfq-wf2q.c
Merge tag 'threads-v5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux
[linux.git] / block / bfq-wf2q.c
index 05f0bf4a1144d79fc26e0024221907f1066182c5..ffe9ce9faa892df287c786e41801e441982bb3d9 100644 (file)
@@ -277,10 +277,7 @@ struct bfq_queue *bfq_entity_to_bfqq(struct bfq_entity *entity)
  */
 static u64 bfq_delta(unsigned long service, unsigned long weight)
 {
-       u64 d = (u64)service << WFQ_SERVICE_SHIFT;
-
-       do_div(d, weight);
-       return d;
+       return div64_ul((u64)service << WFQ_SERVICE_SHIFT, weight);
 }
 
 /**