Re: + kernel-locking-lockdepc-make-lockdep-initialize-itself-on-demand.patch added to -mm tree

From: Ingo Molnar
Date: Tue Feb 09 2016 - 06:00:38 EST



* Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx> wrote:

> On 02/04/2016 12:44 AM, Andrew Morton wrote:
> >
> > Probably lockdep_init() and lockdep_initialized can be done away with now.
> >
>
> Yup, it probably should be folded into your patch, or we could hold this off for 4.6.
>
>
> From: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx>
> Subject: kernel/lockdep: eliminate lockdep_init()
>
> Lockdep is initialized at compile time now. Get rid of lockdep_init().
>
> Signed-off-by: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx>
> ---
> arch/c6x/kernel/setup.c | 2 -
> arch/microblaze/kernel/setup.c | 2 -
> arch/powerpc/kernel/setup_32.c | 2 -
> arch/powerpc/kernel/setup_64.c | 3 --
> arch/s390/kernel/early.c | 1 -
> arch/sparc/kernel/head_64.S | 8 ----
> arch/x86/lguest/boot.c | 6 ---
> include/linux/lockdep.h | 2 -
> init/main.c | 5 ---
> kernel/locking/lockdep.c | 59 ---------------------------
> tools/lib/lockdep/common.c | 5 ---
> tools/lib/lockdep/include/liblockdep/common.h | 1 -
> tools/lib/lockdep/preload.c | 2 -
> 13 files changed, 98 deletions(-)

Very nice! Should have done this from day one on ...

Thanks,

Ingo