SOURCES (LINUX_2_6): linux-2.6-suspend2.patch - updated to 2.6.28; applies ...
adamg
adamg at pld-linux.org
Thu Dec 25 22:50:57 CET 2008
Author: adamg Date: Thu Dec 25 21:50:57 2008 GMT
Module: SOURCES Tag: LINUX_2_6
---- Log message:
- updated to 2.6.28; applies but breakes build
---- Files affected:
SOURCES:
linux-2.6-suspend2.patch (1.1.2.2.2.10 -> 1.1.2.2.2.11)
---- Diffs:
================================================================
Index: SOURCES/linux-2.6-suspend2.patch
diff -u SOURCES/linux-2.6-suspend2.patch:1.1.2.2.2.10 SOURCES/linux-2.6-suspend2.patch:1.1.2.2.2.11
--- SOURCES/linux-2.6-suspend2.patch:1.1.2.2.2.10 Thu Oct 23 20:01:56 2008
+++ SOURCES/linux-2.6-suspend2.patch Thu Dec 25 22:50:51 2008
@@ -3062,7 +3062,7 @@
Exit:
BUG_ON(in_atomic());
printk("\n");
-@@ -257,11 +270,35 @@ static void thaw_tasks(bool nosig_only)
+@@ -145,10 +158,33 @@
void thaw_processes(void)
{
@@ -3091,8 +3091,6 @@
printk("done.\n");
}
- EXPORT_SYMBOL(refrigerator);
-+
+void thaw_kernel_threads(void)
+{
+ freezer_state = FREEZER_USERSPACE_FROZEN;
@@ -5788,7 +5786,7 @@
+ int flags = mode & FMODE_WRITE ? O_RDWR : O_RDONLY;
+ flags |= O_NONBLOCK;
+ if (bdev)
-+ err = blkdev_get(bdev, mode, flags);
++ err = blkdev_get(bdev, flags);
+ return err ? ERR_PTR(err) : bdev;
+}
+EXPORT_SYMBOL_GPL(toi_open_by_devnum);
@@ -19772,7 +19770,7 @@
index 1ff1a58..c02c6e6 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
-@@ -811,6 +811,28 @@ static unsigned long isolate_lru_pages(unsigned long nr_to_scan,
+@@ -938,6 +938,28 @@
return nr_taken;
}
@@ -19801,7 +19799,7 @@
static unsigned long isolate_pages_global(unsigned long nr,
struct list_head *dst,
unsigned long *scanned, int order,
-@@ -861,7 +883,6 @@ static unsigned long shrink_inactive_list(unsigned long max_scan,
+@@ -1041,7 +1063,6 @@
lru_add_drain();
spin_lock_irq(&zone->lru_lock);
do {
@@ -19809,30 +19807,40 @@
unsigned long nr_taken;
unsigned long nr_scan;
unsigned long nr_freed;
-@@ -923,21 +944,7 @@ static unsigned long shrink_inactive_list(unsigned long max_scan,
+@@ -1126,31 +1147,7 @@
/*
* Put back any unfreeable pages.
*/
- while (!list_empty(&page_list)) {
+- int lru;
- page = lru_to_page(&page_list);
- VM_BUG_ON(PageLRU(page));
-- SetPageLRU(page);
- list_del(&page->lru);
-- if (PageActive(page))
-- add_page_to_active_list(zone, page);
-- else
-- add_page_to_inactive_list(zone, page);
+- if (unlikely(!page_evictable(page, NULL))) {
+- spin_unlock_irq(&zone->lru_lock);
+- putback_lru_page(page);
+- spin_lock_irq(&zone->lru_lock);
+- continue;
+- }
+- SetPageLRU(page);
+- lru = page_lru(page);
+- add_page_to_lru_list(zone, page, lru);
+- mem_cgroup_move_lists(page, lru);
+- if (PageActive(page) && scan_global_lru(sc)) {
+- int file = !!page_is_file_cache(page);
+- zone->recent_rotated[file]++;
+- }
- if (!pagevec_add(&pvec, page)) {
- spin_unlock_irq(&zone->lru_lock);
- __pagevec_release(&pvec);
- spin_lock_irq(&zone->lru_lock);
- }
- }
-+ return_lru_pages(&page_list, zone, &pvec);
++ return lru_pages(&page_list, zone, &pvec);
} while (nr_scanned < max_scan);
spin_unlock(&zone->lru_lock);
done:
-@@ -1665,6 +1672,72 @@ out:
+@@ -1878,6 +1875,72 @@
return nr_reclaimed;
}
@@ -19904,8 +19912,8 @@
+
/*
* The background pageout daemon, started as a kernel thread
- * from the init process.
-@@ -1749,6 +1822,9 @@ void wakeup_kswapd(struct zone *zone, int order)
+ * from the init process.
+@@ -1962,6 +2025,9 @@
if (!populated_zone(zone))
return;
@@ -19915,7 +19923,7 @@
pgdat = zone->zone_pgdat;
if (zone_watermark_ok(zone, order, zone->pages_low, 0, 0))
return;
-@@ -1762,6 +1838,109 @@ void wakeup_kswapd(struct zone *zone, int order)
+@@ -1983,6 +2049,109 @@
}
#ifdef CONFIG_PM
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/linux-2.6-suspend2.patch?r1=1.1.2.2.2.10&r2=1.1.2.2.2.11&f=u
More information about the pld-cvs-commit
mailing list