diff options
| author | Andrew Morton <akpm@digeo.com> | 2002-10-29 23:32:18 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-10-29 23:32:18 -0800 |
| commit | afce7191a73f632a138f5511cbe245d39c526331 (patch) | |
| tree | 656fbba4cc86378f7a83a1089f7c8cb3477fe5bc /init | |
| parent | 999eac41b129b96ec511344e963acae34d26a0b1 (diff) | |
[PATCH] percpu: convert global page accounting
Convert global page state accounting to use per-cpu storage
(I think this code remains a little buggy, btw. Note how I do
per_cpu(page_states, cpu).member += (delta);
This gets done at interrupt time and hence is assuming that
the "+=" operation on a ulong is atomic wrt interrupts on
all architectures. How do we feel about that assumption?)
Diffstat (limited to 'init')
| -rw-r--r-- | init/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c index 97d88c50366b..d75bf0acb1eb 100644 --- a/init/main.c +++ b/init/main.c @@ -26,6 +26,7 @@ #include <linux/hdreg.h> #include <linux/bootmem.h> #include <linux/tty.h> +#include <linux/gfp.h> #include <linux/percpu.h> #include <linux/kernel_stat.h> #include <linux/security.h> @@ -388,6 +389,7 @@ asmlinkage void __init start_kernel(void) setup_arch(&command_line); setup_per_cpu_areas(); build_all_zonelists(); + page_alloc_init(); printk("Kernel command line: %s\n", saved_command_line); parse_options(command_line); trap_init(); |
