Skip to content

Commit

Permalink
powerpc/cpumask: Convert rtasd to new cpumask API
Browse files Browse the repository at this point in the history
Use cpumask_first, cpumask_next in rtasd code.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Anton Blanchard authored and Benjamin Herrenschmidt committed May 6, 2010
1 parent 1b095cf commit d5f86fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions arch/powerpc/kernel/rtasd.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,9 @@ static void rtas_event_scan(struct work_struct *w)

get_online_cpus();

cpu = next_cpu(smp_processor_id(), cpu_online_map);
if (cpu == NR_CPUS) {
cpu = first_cpu(cpu_online_map);
cpu = cpumask_next(smp_processor_id(), cpu_online_mask);
if (cpu >= nr_cpu_ids) {
cpu = cpumask_first(cpu_online_mask);

if (first_pass) {
first_pass = 0;
Expand Down Expand Up @@ -466,8 +466,8 @@ static void start_event_scan(void)
/* Retreive errors from nvram if any */
retreive_nvram_error_log();

schedule_delayed_work_on(first_cpu(cpu_online_map), &event_scan_work,
event_scan_delay);
schedule_delayed_work_on(cpumask_first(cpu_online_mask),
&event_scan_work, event_scan_delay);
}

static int __init rtas_init(void)
Expand Down

0 comments on commit d5f86fe

Please sign in to comment.