lkml.org 
[lkml]   [2008]   [Sep]   [30]   [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
Pekka Enberg wrote:
>
> I think you're confusing it to "nr_units" or, alternatively, I need new
> glasses.
>

You are right. units is debri from earlier revs and has no function today.


Subject: cpu_alloc: Remove useless variable

The "units" variable is a leftover and has no function at this point.

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-30 07:09:09.000000000 -0500
+++ linux-2.6/mm/cpu_alloc.c 2008-09-30 07:10:20.000000000 -0500
@@ -27,8 +27,6 @@
#define UNIT_TYPE int
#define UNIT_SIZE sizeof(UNIT_TYPE)

-int units; /* Actual available units */
-
/*
* How many units are needed for an object of a given size
*/

\
 
 \ /
  Last update: 2008-09-30 14:17    [W:0.032 / U:0.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site