Commit d5f86fe3 authored by Anton Blanchard's avatar Anton Blanchard Committed by Benjamin Herrenschmidt

powerpc/cpumask: Convert rtasd to new cpumask API

Use cpumask_first, cpumask_next in rtasd code.
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 1b095cf4
...@@ -411,9 +411,9 @@ static void rtas_event_scan(struct work_struct *w) ...@@ -411,9 +411,9 @@ static void rtas_event_scan(struct work_struct *w)
get_online_cpus(); get_online_cpus();
cpu = next_cpu(smp_processor_id(), cpu_online_map); cpu = cpumask_next(smp_processor_id(), cpu_online_mask);
if (cpu == NR_CPUS) { if (cpu >= nr_cpu_ids) {
cpu = first_cpu(cpu_online_map); cpu = cpumask_first(cpu_online_mask);
if (first_pass) { if (first_pass) {
first_pass = 0; first_pass = 0;
...@@ -466,8 +466,8 @@ static void start_event_scan(void) ...@@ -466,8 +466,8 @@ static void start_event_scan(void)
/* Retreive errors from nvram if any */ /* Retreive errors from nvram if any */
retreive_nvram_error_log(); retreive_nvram_error_log();
schedule_delayed_work_on(first_cpu(cpu_online_map), &event_scan_work, schedule_delayed_work_on(cpumask_first(cpu_online_mask),
event_scan_delay); &event_scan_work, event_scan_delay);
} }
static int __init rtas_init(void) static int __init rtas_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment