All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix usage of cpumask_t on iSeries
@ 2004-06-25 14:51 David Howells
  0 siblings, 0 replies; only message in thread
From: David Howells @ 2004-06-25 14:51 UTC (permalink / raw)
  To: David Howells; +Cc: linuxppc64-dev, linux-kernel


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-25 14:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-25 14:51 [PATCH] Fix usage of cpumask_t on iSeries David Howells

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.