diff options
author | 2005-11-11 23:59:58 +0000 | |
---|---|---|
committer | 2005-11-11 23:59:58 +0000 | |
commit | ee9a4ad4f59c31689cf69b1635f549b6e384ac8c (patch) | |
tree | 501faff3aad784d96d4a6a536b8ae1af2c7348ab | |
parent | remove old debug code in boot() (diff) | |
download | wireguard-openbsd-ee9a4ad4f59c31689cf69b1635f549b6e384ac8c.tar.xz wireguard-openbsd-ee9a4ad4f59c31689cf69b1635f549b6e384ac8c.zip |
round clock up
-rw-r--r-- | sys/arch/arm/xscale/pxa2x0.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0.c b/sys/arch/arm/xscale/pxa2x0.c index aaef057b383..a3fed5406d9 100644 --- a/sys/arch/arm/xscale/pxa2x0.c +++ b/sys/arch/arm/xscale/pxa2x0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pxa2x0.c,v 1.10 2005/10/31 05:23:32 deraadt Exp $ */ +/* $OpenBSD: pxa2x0.c,v 1.11 2005/11/11 23:59:58 deraadt Exp $ */ /* $NetBSD: pxa2x0.c,v 1.5 2003/12/12 16:42:44 thorpej Exp $ */ /* @@ -181,6 +181,8 @@ pxaip_attach(struct device *parent, struct device *self, void *aux) * This takes 2 secs at most. */ cpuclock = pxaip_measure_cpuclock(sc) / 1000; + if (cpuclock % 1000 > 500) + cpuclock = cpuclock + 1000 - cpuclock % 1000; freq = cpuclock / 1000; printf(": CPU clock = %d.%03d MHz\n", cpuclock/1000, cpuclock%1000); |