[PATCH] PERCPU : __percpu_alloc_mask() can dynamically size percpu_data storage

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>, David S. Miller <davem@...>
Cc: Linux kernel <linux-kernel@...>, Christoph Lameter <clameter@...>
Date: Friday, November 16, 2007 - 6:15 pm

Instead of allocating a fix sized array of NR_CPUS pointers for percpu_data, 
we can use nr_cpu_ids, which is generally < NR_CPUS.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>

  include/linux/percpu.h |    2 +-
  mm/allocpercpu.c       |    2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] PERCPU : __percpu_alloc_mask() can dynamically size ..., Eric Dumazet, (Fri Nov 16, 6:15 pm)
Re: [PATCH] PERCPU : __percpu_alloc_mask() can dynamically s..., Christoph Lameter, (Fri Nov 16, 6:25 pm)