You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
freifunkist-firmware/target/linux/etrax/patches/cris/007-nr_free_pages.patch

12 lines
410 B

diff -urN linux-2.6.19.2.orig/mm/page_alloc.c linux-2.6.19.2/mm/page_alloc.c
--- linux-2.6.19.2.orig/mm/page_alloc.c 2007-05-20 03:26:41.000000000 +0200
+++ linux-2.6.19.2/mm/page_alloc.c 2007-05-20 03:28:22.000000000 +0200
@@ -1200,7 +1200,7 @@
unsigned int nr_free_pages(void)
{
unsigned int sum = 0;
- struct zone *zone;
+ volatile struct zone *zone;
for_each_zone(zone)
sum += zone->free_pages;