File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -544,7 +544,7 @@ static inline void actlr_thread_switch(struct task_struct *next)
544
544
#ifdef CONFIG_ARM64_MEMORY_MODEL_CONTROL
545
545
int arch_prctl_mem_model_get (struct task_struct * t )
546
546
{
547
- if (cpus_have_const_cap (ARM64_HAS_TSO_APPLE ) &&
547
+ if (alternative_has_cap_unlikely (ARM64_HAS_TSO_APPLE ) &&
548
548
t -> thread .actlr & ACTLR_APPLE_TSO )
549
549
return PR_SET_MEM_MODEL_TSO ;
550
550
@@ -553,10 +553,10 @@ int arch_prctl_mem_model_get(struct task_struct *t)
553
553
554
554
int arch_prctl_mem_model_set (struct task_struct * t , unsigned long val )
555
555
{
556
- if (cpus_have_const_cap (ARM64_HAS_TSO_FIXED ) && val == PR_SET_MEM_MODEL_TSO )
556
+ if (alternative_has_cap_unlikely (ARM64_HAS_TSO_FIXED ) && val == PR_SET_MEM_MODEL_TSO )
557
557
return 0 ;
558
558
559
- if (cpus_have_const_cap (ARM64_HAS_TSO_APPLE )) {
559
+ if (alternative_has_cap_unlikely (ARM64_HAS_TSO_APPLE )) {
560
560
WARN_ON (!system_has_actlr_state ());
561
561
562
562
switch (val ) {
You can’t perform that action at this time.
0 commit comments