diff options
author | raj <raj@FreeBSD.org> | 2009-05-21 12:05:15 +0000 |
---|---|---|
committer | raj <raj@FreeBSD.org> | 2009-05-21 12:05:15 +0000 |
commit | 333b42e3d881644853b2bf9e6e64066dfa647d9f (patch) | |
tree | 89d44d8a14b1ea0d843036ff4ed5d3b5152e8086 /sys/powerpc/booke/clock.c | |
parent | 84c7ebbafb3a322fc56b7ab3250657ab53cdd04b (diff) | |
download | FreeBSD-src-333b42e3d881644853b2bf9e6e64066dfa647d9f.zip FreeBSD-src-333b42e3d881644853b2bf9e6e64066dfa647d9f.tar.gz |
Improve style(9), clean up.
Diffstat (limited to 'sys/powerpc/booke/clock.c')
-rw-r--r-- | sys/powerpc/booke/clock.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/sys/powerpc/booke/clock.c b/sys/powerpc/booke/clock.c index 63f9f3a..1d9043e 100644 --- a/sys/powerpc/booke/clock.c +++ b/sys/powerpc/booke/clock.c @@ -79,14 +79,14 @@ __FBSDID("$FreeBSD$"); /* * Initially we assume a processor with a bus frequency of 12.5 MHz. */ -u_int tickspending; -u_long ns_per_tick = 80; -static u_long ticks_per_sec = 12500000; -static long ticks_per_intr; +u_int tickspending; +u_long ns_per_tick = 80; +static u_long ticks_per_sec = 12500000; +static long ticks_per_intr; #define DIFF19041970 2082844800 -static timecounter_get_t decr_get_timecount; +static timecounter_get_t decr_get_timecount; static struct timecounter decr_timecounter = { decr_get_timecount, /* get_timecount */ @@ -122,7 +122,6 @@ decr_intr(struct trapframe *frame) statclock(TRAPF_USERMODE(frame)); if (profprocs != 0) profclock(TRAPF_USERMODE(frame), TRAPF_PC(frame)); - } void @@ -181,14 +180,13 @@ decr_tc_init(void) tc_init(&decr_timecounter); } - static unsigned decr_get_timecount(struct timecounter *tc) { quad_t tb; tb = mftb(); - return tb; + return (tb); } /* @@ -207,7 +205,7 @@ DELAY(int n) } start = mftb(); - end = start + (u_quad_t)ticks_per_sec / ( USECS_IN_SEC / n); + end = start + (u_quad_t)ticks_per_sec / (USECS_IN_SEC / n); do { now = mftb(); } while (now < end || (now > start && end < start)); |