1258632Savg/*- 2258632Savg * Copyright (c) 2013 Andriy Gapon 3258632Savg * All rights reserved. 4258632Savg * 5258632Savg * Redistribution and use in source and binary forms, with or without 6258632Savg * modification, are permitted provided that the following conditions 7258632Savg * are met: 8258632Savg * 1. Redistributions of source code must retain the above copyright 9258632Savg * notice, this list of conditions and the following disclaimer. 10258632Savg * 2. Redistributions in binary form must reproduce the above copyright 11258632Savg * notice, this list of conditions and the following disclaimer in the 12258632Savg * documentation and/or other materials provided with the distribution. 13258632Savg * 14258632Savg * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 15258632Savg * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16258632Savg * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17258632Savg * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE 18258632Savg * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19258632Savg * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20258632Savg * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21258632Savg * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22258632Savg * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23258632Savg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24258632Savg * SUCH DAMAGE. 25258632Savg * 26258632Savg * $FreeBSD$ 27258632Savg */ 28258632Savg 29258632Savg#ifndef _OPENSOLARIS_SYS_DISP_H_ 30258632Savg#define _OPENSOLARIS_SYS_DISP_H_ 31258632Savg 32258632Savg#ifdef _KERNEL 33258632Savg 34258632Savg#include <sys/proc.h> 35258632Savg 36258632Savg#define kpreempt(x) kern_yield(PRI_USER) 37258632Savg 38258632Savg#endif /* _KERNEL */ 39258632Savg 40258632Savg#endif /* _OPENSOLARIS_SYS_DISP_H_ */ 41