ipmi_smic.c (163035) | ipmi_smic.c (172836) |
---|---|
1/*- 2 * Copyright (c) 2006 IronPort Systems Inc. <ambrisko@ironport.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006 IronPort Systems Inc. <ambrisko@ironport.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/ipmi/ipmi_smic.c 163035 2006-10-05 15:38:59Z jhb $"); | 28__FBSDID("$FreeBSD: head/sys/dev/ipmi/ipmi_smic.c 172836 2007-10-20 23:23:23Z julian $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/condvar.h> 34#include <sys/eventhandler.h> 35#include <sys/kernel.h> 36#include <sys/kthread.h> --- 330 unchanged lines hidden (view full) --- 367 ok = smic_polled_request(sc, req); 368 if (ok) 369 req->ir_error = 0; 370 else 371 req->ir_error = EIO; 372 ipmi_complete_request(sc, req); 373 } 374 IPMI_UNLOCK(sc); | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/condvar.h> 34#include <sys/eventhandler.h> 35#include <sys/kernel.h> 36#include <sys/kthread.h> --- 330 unchanged lines hidden (view full) --- 367 ok = smic_polled_request(sc, req); 368 if (ok) 369 req->ir_error = 0; 370 else 371 req->ir_error = EIO; 372 ipmi_complete_request(sc, req); 373 } 374 IPMI_UNLOCK(sc); |
375 kthread_exit(0); | 375 kproc_exit(0); |
376} 377 378static int 379smic_startup(struct ipmi_softc *sc) 380{ 381 | 376} 377 378static int 379smic_startup(struct ipmi_softc *sc) 380{ 381 |
382 return (kthread_create(smic_loop, sc, &sc->ipmi_kthread, 0, 0, | 382 return (kproc_create(smic_loop, sc, &sc->ipmi_kthread, 0, 0, |
383 "%s: smic", device_get_nameunit(sc->ipmi_dev))); 384} 385 386int 387ipmi_smic_attach(struct ipmi_softc *sc) 388{ 389 int flags; 390 --- 17 unchanged lines hidden --- | 383 "%s: smic", device_get_nameunit(sc->ipmi_dev))); 384} 385 386int 387ipmi_smic_attach(struct ipmi_softc *sc) 388{ 389 int flags; 390 --- 17 unchanged lines hidden --- |