Re: [PATCH] kmemleak: add unlikely() optimization to kmemleak_late_init

From: Catalin Marinas
Date: Wed Sep 22 2010 - 06:06:51 EST


Davidlohr Bueso <dave@xxxxxxx> wrote:
> kmemleak: add unlikely() optimization to kmemleak_late_init()
>
> Since there it is not very probable that kmemleak_disable() was called right after setting kmemleak_initialized, we could benefit from predicting it.

The patch is correct and you can add my Acked-by but I don't really
think it's worth. We save ~2 cycles during booting, no-one would ever
notice.

--
Catalin
--
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/