xref: /openbmc/linux/arch/x86/include/asm/cacheinfo.h (revision 979ac5ef)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_CACHEINFO_H
3 #define _ASM_X86_CACHEINFO_H
4 
5 /* Kernel controls MTRR and/or PAT MSRs. */
6 extern unsigned int memory_caching_control;
7 #define CACHE_MTRR 0x01
8 #define CACHE_PAT  0x02
9 
10 void cacheinfo_amd_init_llc_id(struct cpuinfo_x86 *c, int cpu);
11 void cacheinfo_hygon_init_llc_id(struct cpuinfo_x86 *c, int cpu);
12 
13 void cache_disable(void);
14 void cache_enable(void);
15 void set_cache_aps_delayed_init(bool val);
16 bool get_cache_aps_delayed_init(void);
17 void cache_bp_init(void);
18 void cache_bp_restore(void);
19 void cache_aps_init(void);
20 
21 #endif /* _ASM_X86_CACHEINFO_H */
22