1*c12488bbSMark Johnston /*- 2*c12488bbSMark Johnston * Copyright (c) 2017 Mark Johnston <markj@FreeBSD.org> 3*c12488bbSMark Johnston * 4*c12488bbSMark Johnston * Redistribution and use in source and binary forms, with or without 5*c12488bbSMark Johnston * modification, are permitted provided that the following conditions are 6*c12488bbSMark Johnston * met: 7*c12488bbSMark Johnston * 1. Redistributions of source code must retain the above copyright 8*c12488bbSMark Johnston * notice, this list of conditions and the following disclaimer. 9*c12488bbSMark Johnston * 2. Redistributions in binary form must reproduce the above copyright 10*c12488bbSMark Johnston * notice, this list of conditions and the following disclaimer in 11*c12488bbSMark Johnston * the documentation and/or other materials provided with the 12*c12488bbSMark Johnston * distribution. 13*c12488bbSMark Johnston * 14*c12488bbSMark Johnston * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15*c12488bbSMark Johnston * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*c12488bbSMark Johnston * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*c12488bbSMark Johnston * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*c12488bbSMark Johnston * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*c12488bbSMark Johnston * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*c12488bbSMark Johnston * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*c12488bbSMark Johnston * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*c12488bbSMark Johnston * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*c12488bbSMark Johnston * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*c12488bbSMark Johnston * SUCH DAMAGE. 25*c12488bbSMark Johnston * 26*c12488bbSMark Johnston * $FreeBSD$ 27*c12488bbSMark Johnston */ 28*c12488bbSMark Johnston 29*c12488bbSMark Johnston #ifndef _ASM_SMP_H_ 30*c12488bbSMark Johnston #define _ASM_SMP_H_ 31*c12488bbSMark Johnston 32*c12488bbSMark Johnston #if defined(__i386__) || defined(__amd64__) 33*c12488bbSMark Johnston 34*c12488bbSMark Johnston #define wbinvd_on_all_cpus() linux_wbinvd_on_all_cpus() 35*c12488bbSMark Johnston 36*c12488bbSMark Johnston int linux_wbinvd_on_all_cpus(void); 37*c12488bbSMark Johnston 38*c12488bbSMark Johnston #endif 39*c12488bbSMark Johnston 40*c12488bbSMark Johnston #endif /* _ASM_SMP_H_ */ 41