p->has_cpu patch was buggy (fwd)

Andrea Arcangeli (arcangel@CS.UniBO.IT)
Fri, 13 Nov 1998 11:23:56 +0100 (MET)


Usually at home when I write linux-kernel got autoexpanded in the right
address... ;-)

Andrea[s] Arcangeli

---------- Forwarded message ----------
Date: Fri, 13 Nov 1998 11:22:43 +0100 (MET)
From: Andrea Arcangeli <arcangel@cs.unibo.it>
Reply-To: Andrea Arcangeli <andrea@e-mind.com>
To: linux-kernel@cs.unibo.it
Cc: torvalds@transmeta.com
Subject: p->has_cpu patch was buggy

Woops I had 1 second to think about my patch because it was late and I had
to take the train... I concentrated my little time about the ->has_cpu and
not on the ->processor field.

The patch I posted was buggy, the right version should do:

if (prev != next)
{
....
#ifdef SMP
next->processor = this_cpu;
#endif
switch_to(prev,next);
}

#ifdef SMP
prev->has_cpu = 1;
#endif

I don' t have the source kernel tree here, I' ll try to produce a patch
soon...

Andrea[s] Arcangeli

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/