[PATCH] Fix usage of cpumask_t on iSeries

From: David Howells
Date: Fri Jun 25 2004 - 09:53:17 EST



Hi,

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.

David

--- linux-2.6.7/arch/ppc64/kernel/irq.c.orig 2004-06-25 09:32:14.000000000 -0400
+++ linux-2.6.7/arch/ppc64/kernel/irq.c 2004-06-25 09:33:33.000000000 -0400
@@ -807,11 +807,10 @@ static int prof_cpu_mask_write_proc (str
{
unsigned 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;
else
paca[i].prof_enabled = 0;
- new_value >>= 1;
}
}
#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/