Re: [PATCH 1/1] x86: fix text_poke

From: Linus Torvalds
Date: Fri Apr 25 2008 - 13:15:50 EST




On Fri, 25 Apr 2008, Ingo Molnar wrote:
>
> performance i dont think we should be too worried about at this moment -
> this code is so rarely used that it should be driven by robustness i
> think.

That really isn't true. This isn't done just once. It's done many
thousands of times.

I agree that it has to be robust, but if we want to make suspend/resume
be instantaneous (and we do), performance does actually matter. Yes, this
is probably much less of a problem than waiting for devices, and no, I
haven't timed it, but if I counted right, we'll literally be going almost
ten thousand of these calls over a suspend/resume cycle.

That's not "rarely used".

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