lkml.org 
[lkml]   [2008]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [patch 3/4] cpu alloc: The allocator
Completely wrong. We need this patch that Eric suggested:


Subject: cpu_alloc: Allow alignment < UNIT_SIZE

Limit the minimum alignment to UNIT_SIZE.

Signed-off-by: Christoph Lameter <cl@linux-foundation.org>

Index: linux-2.6/mm/cpu_alloc.c
===================================================================
--- linux-2.6.orig/mm/cpu_alloc.c 2008-09-19 11:47:30.000000000 -0500
+++ linux-2.6/mm/cpu_alloc.c 2008-09-19 11:56:47.000000000 -0500
@@ -86,6 +86,9 @@

WARN_ON(align > PAGE_SIZE);

+ if (align < UNIT_SIZE)
+ align = UNIT_SIZE;
+
spin_lock_irqsave(&cpu_alloc_map_lock, flags);

first = 1

\
 
 \ /
  Last update: 2008-09-19 19:05    [W:0.343 / U:1.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site