diff options
| author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-26 14:51:58 +0000 |
|---|---|---|
| committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-26 14:51:58 +0000 |
| commit | 768f89e0788ab1ab7ea5df9d57082f53567007ec (patch) | |
| tree | 07ce8a4419c47fd4788bda5302443efe21db7ed0 /sys/boot/powerpc | |
| parent | 96edd3f3eed053770433b515d6e8c1e839f3233e (diff) | |
Notes
Diffstat (limited to 'sys/boot/powerpc')
| -rw-r--r-- | sys/boot/powerpc/ps3/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/powerpc/ps3/main.c b/sys/boot/powerpc/ps3/main.c index 86ce62ebfac5..bb1fd84c4b70 100644 --- a/sys/boot/powerpc/ps3/main.c +++ b/sys/boot/powerpc/ps3/main.c @@ -174,7 +174,7 @@ delay(int usecs) uint64_t tb,ttb; tb = mftb(); - ttb = tb + (usecs * 1000 + ns_per_tick - 1) / ns_per_tick; + ttb = tb + howmany(usecs * 1000, ns_per_tick); while (tb < ttb) tb = mftb(); } |
