lkml.org 
[lkml]   [2006]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] convert a for (i = 0 ; i < NR_CPUS ; i++) to for_each_cpu(i) in files_defer_init()
[PATCH] converts a for (i = 0 ; i < NR_CPUS ; i++) to for_each_cpu(i)  in 
files_defer_init().

The comment 'Really early - can't use for_each_cpu' is probably outdated,
because if we access &per_cpu(fdtable_defer_list, cpu), then for_each_cpu() or
cpu_possible() should be available (It was available at setup_per_cpu_areas()
time)

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
--- linux-2.6.16-rc1-mm3/fs/file.c 2006-01-25 10:55:13.000000000 +0100
+++ linux-2.6.16-rc1-mm3-ed/fs/file.c 2006-01-25 10:54:39.000000000 +0100
@@ -373,7 +373,6 @@
void __init files_defer_init(void)
{
int i;
- /* Really early - can't use for_each_cpu */
- for (i = 0; i < NR_CPUS; i++)
+ for_each_cpu(i)
fdtable_defer_list_init(i);
}
\
 
 \ /
  Last update: 2006-01-25 10:17    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site