[PATCH 3/8] pecpu: Fix size of percpu_data.ptrs array rc8-mm1-fixup

Previous thread: what's up for v2.6.25 in x86.git by Ingo Molnar on Monday, January 21, 2008 - 4:14 pm. (4 messages)

Next thread: [PATCH 8/8] percpu: Add debug of invalid per_cpu usage rc8-mm1-fixup by travis on Monday, January 21, 2008 - 4:27 pm. (1 message)
To: Andrew Morton <akpm@...>, Andi Kleen <ak@...>, <mingo@...>
Cc: Christoph Lameter <clameter@...>, <linux-mm@...>, <linux-kernel@...>
Date: Monday, January 21, 2008 - 4:27 pm

Define the size of the generic percpu pointers array to be NR_CPUS

Based on: 2.6.24-rc8-mm1

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Mike Travis <travis@sgi.com>

---
include/linux/percpu.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/include/linux/percpu.h
+++ b/include/linux/percpu.h
@@ -58,7 +58,7 @@
#ifdef CONFIG_SMP

struct percpu_data {
- void *ptrs[1];
+ void *ptrs[NR_CPUS];
};

#define __percpu_disguise(pdata) (struct percpu_data *)~(unsigned long)(pdata)

--
--

Previous thread: what's up for v2.6.25 in x86.git by Ingo Molnar on Monday, January 21, 2008 - 4:14 pm. (4 messages)

Next thread: [PATCH 8/8] percpu: Add debug of invalid per_cpu usage rc8-mm1-fixup by travis on Monday, January 21, 2008 - 4:27 pm. (1 message)