Commit 7518f92d authored by David Howells's avatar David Howells Committed by Linus Torvalds

[PATCH] ppc64: fix usage of cpumask_t on iSeries

This fixes a bit of iSeries code that hadn't been changed to reflect that
cpumask_t is now a struct and not an integer type.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c7b2c4b1
...@@ -807,11 +807,10 @@ static int prof_cpu_mask_write_proc (struct file *file, const char __user *buffe ...@@ -807,11 +807,10 @@ static int prof_cpu_mask_write_proc (struct file *file, const char __user *buffe
{ {
unsigned i; unsigned i;
for (i=0; i<NR_CPUS; ++i) { for (i=0; i<NR_CPUS; ++i) {
if ( paca[i].prof_buffer && (new_value & 1) ) if ( paca[i].prof_buffer && cpu_isset(1, new_value) )
paca[i].prof_enabled = 1; paca[i].prof_enabled = 1;
else else
paca[i].prof_enabled = 0; paca[i].prof_enabled = 0;
new_value >>= 1;
} }
} }
#endif #endif
......
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