Re: [RFC][PATCH 2/2] kernel: extract thread types fromtask_struct::flags

From: Andrew Morton
Date: Mon Sep 20 2010 - 15:42:51 EST


On Mon, 20 Sep 2010 21:25:16 +0200
Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:

> So can you agree with Linus' proposal of simply moving all type like
> bits over to a new word, or would you rather see the linear type field
> with an extra helper; possibly part of the existing ->flags field?

No strong feelings either way, really.

One thing we should keep an eye out for is the size/speed of code at
the client callsites. Plucking a field of bits out of the flags word
and then treating that as a scalar would generate quite a bit of code,
I expect. Let's not do that.
--
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/