From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Mon, 24 Oct 2011 14:08:31 +0100 Subject: [PATCH] Shrink thread_info a bit In-Reply-To: <20111024130619.GE26649@sapphire.tkos.co.il> References: <20111024124818.GA17693@n2100.arm.linux.org.uk> <20111024130619.GE26649@sapphire.tkos.co.il> Message-ID: <20111024130831.GA18426@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Oct 24, 2011 at 03:06:19PM +0200, Baruch Siach wrote: > Hi Russell, > > On Mon, Oct 24, 2011 at 01:48:18PM +0100, Russell King - ARM Linux wrote: > > Thread info comes in on Versatile Express at 752 bytes in size, which > > is quite large. Of this, the crunch state is 184 bytes, which is only > > used on Cirrus Logic devices. > > > > It is wasteful to have this in every kernel when Cirrus Logic CPUs > > are not that widely used. So make this conditional. > > > > Signed-off-by: Russell King > > --- > > arch/arm/include/asm/thread_info.h | 2 ++ > > arch/arm/kernel/asm-offsets.c | 2 ++ > > 2 files changed, 4 insertions(+), 0 deletions(-) > > > > diff --git a/arch/arm/include/asm/thread_info.h b/arch/arm/include/asm/thread_info.h > > index 7b5cc8d..a030be7 100644 > > --- a/arch/arm/include/asm/thread_info.h > > +++ b/arch/arm/include/asm/thread_info.h > > @@ -59,7 +59,9 @@ struct thread_info { > > __u32 syscall; /* syscall number */ > > __u8 used_cp[16]; /* thread used copro */ > > unsigned long tp_value; > > +#ifdef CONFIG_CRUNCH > > struct crunch_state crunchstate; > > +#endif > > union fp_state fpstate __attribute__((aligned(8))); > > union vfp_state vfpstate; > > #ifdef CONFIG_ARM_THUMBEE > > Where is the arch/arm/kernel/asm-offsets.c hunk? Have you looked there?