Re: [PATCH 3/3] x86: Fix abuse of per_cpu_offset

From: Ingo Molnar
Date: Mon Feb 09 2009 - 04:31:25 EST



* Brian Gerst <brgerst@xxxxxxxxx> wrote:

> Impact: bug fix
>
> Don't use per_cpu_offset() to determine if it valid to access a
> per-cpu variable for a given cpu number. It is not a valid assumption
> on x86-64 anymore. Use cpu_possible() instead.
>
> Signed-off-by: Brian Gerst <brgerst@xxxxxxxxx>
> ---
> arch/x86/mm/numa_64.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)

Applied to tip/core/perpcu, thanks Brian!

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