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. */
6extern unsigned int memory_caching_control;
7#define CACHE_MTRR 0x01
8#define CACHE_PAT 0x02
9
10void cache_disable(void);
11void cache_enable(void);
12void set_cache_aps_delayed_init(bool val);
13bool get_cache_aps_delayed_init(void);
14void cache_bp_init(void);
15void cache_bp_restore(void);
16void cache_aps_init(void);
17
18#endif /* _ASM_X86_CACHEINFO_H */
19

source code of linux/arch/x86/include/asm/cacheinfo.h