]> git.pld-linux.org Git - packages/kernel.git/blob - linux-2.4.6-nohighmem.patch
- added description of djurban's branch
[packages/kernel.git] / linux-2.4.6-nohighmem.patch
1 --- linux/mm/highmem.c.org      Sat Jul  7 19:46:23 2001
2 +++ linux/mm/highmem.c  Sat Jul  7 19:51:03 2001
3 @@ -254,6 +254,13 @@
4  
5  static __init int init_emergency_pool(void)
6  {
7 +       struct sysinfo i;
8 +        si_meminfo(&i);
9 +        si_swapinfo(&i);
10 +        
11 +        if (!i.totalhigh)
12 +               return;
13 +
14         spin_lock_irq(&emergency_lock);
15         while (nr_emergency_pages < POOL_SIZE) {
16                 struct page * page = alloc_page(GFP_ATOMIC);
This page took 0.058525 seconds and 3 git commands to generate.