Date: Tue, 8 Aug 2006 16:06:55 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 103452 for review Message-ID: <200608081606.k78G6t4B010500@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103452 Change 103452 by gonzo@gonzo_hq on 2006/08/08 16:06:15 o Disable clock device initialization for cpu device explicitly. Rely on autoconfiguration stuff for that. Generick ticker code is on it's way. Affected files ... .. //depot/projects/mips2/src/sys/mips/mips/cpu.c#14 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/mips/cpu.c#14 (text+ko) ==== @@ -287,16 +287,6 @@ static int cpu_probe(device_t dev) { - device_t clock; - - if (device_get_unit(dev) != 0) - panic("can't attach more cpus"); - device_set_desc(dev, "MIPS32 processor"); - - clock = device_add_child(dev, "mips32_clock", device_get_unit(dev)); - if (clock == NULL) - device_printf(dev, "mips32_clock failed to attach"); - return (0); } @@ -304,6 +294,9 @@ cpu_attach(device_t dev) { int error; +#ifdef notyet + device_t clock; +#endif cpu_hardirq_rman.rm_start = 0; cpu_hardirq_rman.rm_end = 5; @@ -324,6 +317,16 @@ return (error); } + if (device_get_unit(dev) != 0) + panic("can't attach more cpus"); + device_set_desc(dev, "MIPS32 processor"); + +#ifdef notyet + clock = device_add_child(dev, "clock", device_get_unit(dev)); + if (clock == NULL) + device_printf(dev, "clock failed to attach"); +#endif + return (bus_generic_attach(dev)); } @@ -355,9 +358,7 @@ intr = rman_get_start(res); -#if 0 cpu_establish_hardintr(intr, handler, arg); -#endif device_printf(child, "established CPU interrupt %d\n", intr); return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608081606.k78G6t4B010500>