diff options
author | hselasky <hselasky@FreeBSD.org> | 2015-05-05 20:58:12 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2015-05-05 20:58:12 +0000 |
commit | f1e7a5a4b53437e092f13a623a04a2fdf83471ce (patch) | |
tree | 1366469ee372a97f4602608072fb528c26a97921 /sys/ofed/include/linux/cache.h | |
parent | dff292d25f1e108391e51ab40b8f1abcd9ec7ca6 (diff) | |
download | FreeBSD-src-f1e7a5a4b53437e092f13a623a04a2fdf83471ce.zip FreeBSD-src-f1e7a5a4b53437e092f13a623a04a2fdf83471ce.tar.gz |
MFC r277396, r278681, r278865, r278924, r279205, r280208,
r280210, r280764 and r280768:
Update the Linux compatibility layer:
- Add more functions.
- Add some missing includes which are needed when the header files
are not included in a particular order.
- The kasprintf() function cannot be inlined due to using a variable
number of arguments. Move it to a C-file.
- Fix problems about 32-bit ticks wraparound and unsigned long
conversion. Jiffies or ticks in FreeBSD have integer type and are
not long.
- Add missing "order_base_2()" macro.
- Fix BUILD_BUG_ON() macro.
- Declare a missing symbol which is needed when compiling without -O2
- Clean up header file inclusions in the linux/completion.h, linux/in.h
and linux/fs.h header files.
Sponsored by: Mellanox Technologies
Diffstat (limited to 'sys/ofed/include/linux/cache.h')
-rw-r--r-- | sys/ofed/include/linux/cache.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/ofed/include/linux/cache.h b/sys/ofed/include/linux/cache.h index e4a9d09..921a507 100644 --- a/sys/ofed/include/linux/cache.h +++ b/sys/ofed/include/linux/cache.h @@ -30,8 +30,7 @@ #ifndef _LINUX_CACHE_H_ #define _LINUX_CACHE_H_ - #define cache_line_size() CACHE_LINE_SIZE - +#define L1_CACHE_BYTES CACHE_LINE_SIZE #endif /* _LINUX_CACHE_H_ */ |