1d998b496SFrançois Tigeot /* 2d6aa1cc5SFrançois Tigeot * Copyright (c) 2016-2018 François Tigeot <ftigeot@wolfpond.org> 3d998b496SFrançois Tigeot * All rights reserved. 4d998b496SFrançois Tigeot * 5d998b496SFrançois Tigeot * Redistribution and use in source and binary forms, with or without 6d998b496SFrançois Tigeot * modification, are permitted provided that the following conditions 7d998b496SFrançois Tigeot * are met: 8d998b496SFrançois Tigeot * 1. Redistributions of source code must retain the above copyright 9d998b496SFrançois Tigeot * notice unmodified, this list of conditions, and the following 10d998b496SFrançois Tigeot * disclaimer. 11d998b496SFrançois Tigeot * 2. Redistributions in binary form must reproduce the above copyright 12d998b496SFrançois Tigeot * notice, this list of conditions and the following disclaimer in the 13d998b496SFrançois Tigeot * documentation and/or other materials provided with the distribution. 14d998b496SFrançois Tigeot * 15d998b496SFrançois Tigeot * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16d998b496SFrançois Tigeot * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17d998b496SFrançois Tigeot * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18d998b496SFrançois Tigeot * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19d998b496SFrançois Tigeot * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20d998b496SFrançois Tigeot * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21d998b496SFrançois Tigeot * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22d998b496SFrançois Tigeot * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23d998b496SFrançois Tigeot * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24d998b496SFrançois Tigeot * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25d998b496SFrançois Tigeot */ 26d998b496SFrançois Tigeot 27d998b496SFrançois Tigeot #ifndef _LINUX_CACHE_H_ 28d998b496SFrançois Tigeot #define _LINUX_CACHE_H_ 29d998b496SFrançois Tigeot 30d6aa1cc5SFrançois Tigeot #include <linux/types.h> 31d998b496SFrançois Tigeot #include <sys/cdefs.h> 32*cba80b66SSascha Wildner #include <sys/systm.h> 33d998b496SFrançois Tigeot 34d998b496SFrançois Tigeot #define cache_line_size() __VM_CACHELINE_SIZE 35d998b496SFrançois Tigeot 36c0e85e96SFrançois Tigeot #ifndef __read_mostly 37c0e85e96SFrançois Tigeot #define __read_mostly 38c0e85e96SFrançois Tigeot #endif 39c0e85e96SFrançois Tigeot 40d998b496SFrançois Tigeot #endif /* _LINUX_CACHE_H_ */ 41