Date: Tue, 1 May 2007 20:15:40 GMT From: Bruce M Simpson <bms@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 119119 for review Message-ID: <200705012015.l41KFeMS066153@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=119119 Change 119119 by bms@bms_anglepoise on 2007/05/01 20:14:54 more style fixes Affected files ... .. //depot/projects/mips2/src/sys/mips/mips/tick.c#8 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/mips/tick.c#8 (text+ko) ==== @@ -130,6 +130,7 @@ void tick_init(void) { + if (counter_freq != 0 && !counter_is_broken) { counter_timecounter.tc_frequency = counter_freq; tc_init(&counter_timecounter); @@ -216,17 +217,17 @@ usermode = tf->tf_regs[TF_SR] & MIPS_SR_KSU_USER; pc = tf->tf_regs[TF_EPC]; - if (clocks_running) - { + if (clocks_running) { hardclock(usermode, pc); } - return FILTER_HANDLED; + return (FILTER_HANDLED); } static int clock_probe(device_t dev) { + if (device_get_unit(dev) != 0) panic("can't attach more clocks"); @@ -237,6 +238,7 @@ static void clock_identify(driver_t *drv, device_t parent) { + BUS_ADD_CHILD(parent, 0, "clock", 0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705012015.l41KFeMS066153>