]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/x86/include/asm/cache.h
x86/msr-index: Cleanup bit defines
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / include / asm / cache.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1965aae3
PA
2#ifndef _ASM_X86_CACHE_H
3#define _ASM_X86_CACHE_H
9bfa23df 4
abe1ee3a
TA
5#include <linux/linkage.h>
6
9bfa23df
TG
7/* L1 cache line size */
8#define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
9#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
10
54cb27a7 11#define __read_mostly __attribute__((__section__(".data..read_mostly")))
9bfa23df 12
350f8f56
JB
13#define INTERNODE_CACHE_SHIFT CONFIG_X86_INTERNODE_CACHE_SHIFT
14#define INTERNODE_CACHE_BYTES (1 << INTERNODE_CACHE_SHIFT)
15
9bfa23df 16#ifdef CONFIG_X86_VSMP
9bfa23df
TG
17#ifdef CONFIG_SMP
18#define __cacheline_aligned_in_smp \
350f8f56 19 __attribute__((__aligned__(INTERNODE_CACHE_BYTES))) \
abe1ee3a 20 __page_aligned_data
9bfa23df
TG
21#endif
22#endif
23
1965aae3 24#endif /* _ASM_X86_CACHE_H */