]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/mm_inline.h
[CPUFREQ] Rewrite lock in cpufreq to eliminate cpufreq/hotplug related issues
[linux-2.6-omap-h63xx.git] / include / linux / mm_inline.h
index 49cc68af01f8e6d971d870fd952d229d31810628..3b6723dfaff38f50bb8fa75e9b99072d9c2d69ba 100644 (file)
@@ -32,31 +32,10 @@ del_page_from_lru(struct zone *zone, struct page *page)
 {
        list_del(&page->lru);
        if (PageActive(page)) {
-               ClearPageActive(page);
+               __ClearPageActive(page);
                zone->nr_active--;
        } else {
                zone->nr_inactive--;
        }
 }
 
-/*
- * Isolate one page from the LRU lists.
- *
- * - zone->lru_lock must be held
- */
-static inline int __isolate_lru_page(struct page *page)
-{
-       if (unlikely(!TestClearPageLRU(page)))
-               return 0;
-
-       if (get_page_testone(page)) {
-               /*
-                * It is being freed elsewhere
-                */
-               __put_page(page);
-               SetPageLRU(page);
-               return -ENOENT;
-       }
-
-       return 1;
-}