add initial support for the crisarchitecture used on foxboards to openwrt
[openwrt/staging/chunkeey.git] / target / linux / etrax-2.6 / patches / cris / 007-nr_free_pages.patch
1 diff -urN linux-2.6.19.2.orig/mm/page_alloc.c linux-2.6.19.2/mm/page_alloc.c
2 --- linux-2.6.19.2.orig/mm/page_alloc.c 2007-05-20 03:26:41.000000000 +0200
3 +++ linux-2.6.19.2/mm/page_alloc.c 2007-05-20 03:28:22.000000000 +0200
4 @@ -1200,7 +1200,7 @@
5 unsigned int nr_free_pages(void)
6 {
7 unsigned int sum = 0;
8 - struct zone *zone;
9 + volatile struct zone *zone;
10
11 for_each_zone(zone)
12 sum += zone->free_pages;