提交 6decd63a 编写于 作者: T Thomas Graf 提交者: David S. Miller

rhashtable-test: Fix 64bit division

A 64bit division went in unnoticed. Use do_div() to accomodate
non 64bit architectures.

Reported-by: kbuild test robot
Fixes: 1aa661f5 ("rhashtable-test: Measure time to insert, remove & traverse entries")
Signed-off-by: NThomas Graf <tgraf@suug.ch>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c936a79f
......@@ -229,7 +229,8 @@ static int __init test_rht_init(void)
total_time += time;
}
pr_info("Average test time: %llu\n", total_time / runs);
do_div(total_time, runs);
pr_info("Average test time: %llu\n", total_time);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册