cache.h (307f78f3ed90a4145eeb2c8cc79bc95b2666f57a) cache.h (f7c0c1590e3e313d7f60da275b1d74dd82b56b04)
1/*-
2 * Copyright (c) 2010 Isilon Systems, Inc.
3 * Copyright (c) 2010 iX Systems, Inc.
4 * Copyright (c) 2010 Panasas, Inc.
5 * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 21 unchanged lines hidden (view full) ---

30 */
31#ifndef _LINUXKPI_LINUX_CACHE_H_
32#define _LINUXKPI_LINUX_CACHE_H_
33
34#include <sys/param.h>
35
36#define cache_line_size() CACHE_LINE_SIZE
37#define L1_CACHE_BYTES CACHE_LINE_SIZE
1/*-
2 * Copyright (c) 2010 Isilon Systems, Inc.
3 * Copyright (c) 2010 iX Systems, Inc.
4 * Copyright (c) 2010 Panasas, Inc.
5 * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 21 unchanged lines hidden (view full) ---

30 */
31#ifndef _LINUXKPI_LINUX_CACHE_H_
32#define _LINUXKPI_LINUX_CACHE_H_
33
34#include <sys/param.h>
35
36#define cache_line_size() CACHE_LINE_SIZE
37#define L1_CACHE_BYTES CACHE_LINE_SIZE
38#define L1_CACHE_ALIGN(x) ALIGN(x, CACHE_LINE_SIZE)
38
39#define SMP_CACHE_BYTES L1_CACHE_BYTES
40
41#endif /* _LINUXKPI_LINUX_CACHE_H_ */
39
40#define SMP_CACHE_BYTES L1_CACHE_BYTES
41
42#endif /* _LINUXKPI_LINUX_CACHE_H_ */