Messages in this thread | | | Date | Thu, 21 Jun 2007 13:10:03 -0700 (PDT) | From | Linus Torvalds <> | Subject | Re: [BUG] long freezes on thinkpad t60 |
| |
On Thu, 21 Jun 2007, Ingo Molnar wrote: > > I can understand why no data is saved by this change: gcc is aligning > the next field to a natural boundary anyway and we dont really have > arrays of spinlocks (fortunately).
Actually, some data structures could well shrink.
Look at "struct task_struct", for example. Right now it has two spinlocks right next to each other (alloc_lock and pi_lock).
Other data structures may have things like bitfields etc.
But yeah, I'd not expect that to be very common, and in some cases you might have to re-order data structures to take advantage of better packing, and even then it's probably not all that noticeable.
> but this is certainly not something for 2.6.22, it's an early 2.6.23 > matter i suspect.
Oh, absolutely.
Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |