dhry: Correct dhrystone calculation for fast machines
authorSimon Glass <sjg@chromium.org>
Wed, 16 Mar 2016 13:44:35 +0000 (07:44 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 17 Mar 2016 02:27:27 +0000 (10:27 +0800)
commitf215287bd59c28443efe6118e7e958be733ce727
treefa7546b7a988b13635f4d2a2128db6ca5c608905
parent9ab60493c9cf018e82b0a6d0f2f35792dfb12ba9
dhry: Correct dhrystone calculation for fast machines

At present samus reports about 5600 DMIPS. With the default iteration count
this is OK, but if 10 million runs are performed it overflows. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
lib/dhry/cmd_dhry.c