Home
last modified time | relevance | path

Searched refs:cpucap (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/arch/arm64/include/asm/
Dalternative-macros.h26 #define ALTINSTR_ENTRY(cpucap) \ argument
29 " .hword " __stringify(cpucap) "\n" /* cpucap */ \
33 #define ALTINSTR_ENTRY_CB(cpucap, cb) \ argument
36 " .hword " __stringify(cpucap) "\n" /* cpucap */ \
56 #define __ALTERNATIVE_CFG(oldinstr, newinstr, cpucap, cfg_enabled) \ argument
62 ALTINSTR_ENTRY(cpucap) \
73 #define __ALTERNATIVE_CFG_CB(oldinstr, cpucap, cfg_enabled, cb) \ argument
79 ALTINSTR_ENTRY_CB(cpucap, cb) \
85 #define _ALTERNATIVE_CFG(oldinstr, newinstr, cpucap, cfg, ...) \ argument
86 __ALTERNATIVE_CFG(oldinstr, newinstr, cpucap, IS_ENABLED(cfg))
[all …]
Dalternative.h16 u16 cpucap; /* cpucap bit set for replacement */ member
26 bool alternative_is_applied(u16 cpucap);
/Linux-v6.6/arch/arm64/kernel/
Dalternative.c27 #define ALT_CAP(a) ((a)->cpucap & ~ARM64_CB_BIT)
28 #define ALT_HAS_CB(a) ((a)->cpucap & ARM64_CB_BIT)
40 bool alternative_is_applied(u16 cpucap) in alternative_is_applied() argument
42 if (WARN_ON(cpucap >= ARM64_NCAPS)) in alternative_is_applied()
45 return test_bit(cpucap, applied_alternatives); in alternative_is_applied()