aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/acpi/cstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/acpi/cstate.c')
-rw-r--r--arch/x86/kernel/acpi/cstate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/acpi/cstate.c b/arch/x86/kernel/acpi/cstate.c
index 8ca3557a6d59..c6dc05af8827 100644
--- a/arch/x86/kernel/acpi/cstate.c
+++ b/arch/x86/kernel/acpi/cstate.c
@@ -93,7 +93,7 @@ int acpi_processor_ffh_cstate_probe(unsigned int cpu,
93 93
94 /* Make sure we are running on right CPU */ 94 /* Make sure we are running on right CPU */
95 saved_mask = current->cpus_allowed; 95 saved_mask = current->cpus_allowed;
96 retval = set_cpus_allowed(current, cpumask_of_cpu(cpu)); 96 retval = set_cpus_allowed_ptr(current, &cpumask_of_cpu(cpu));
97 if (retval) 97 if (retval)
98 return -1; 98 return -1;
99 99
@@ -130,7 +130,7 @@ int acpi_processor_ffh_cstate_probe(unsigned int cpu,
130 cx->address); 130 cx->address);
131 131
132out: 132out:
133 set_cpus_allowed(current, saved_mask); 133 set_cpus_allowed_ptr(current, &saved_mask);
134 return retval; 134 return retval;
135} 135}
136EXPORT_SYMBOL_GPL(acpi_processor_ffh_cstate_probe); 136EXPORT_SYMBOL_GPL(acpi_processor_ffh_cstate_probe);