search for: page_alloc_init

Displaying 2 results from an estimated 2 matches for "page_alloc_init".

2007 Apr 18
1
[patch 8/9] Guest page hinting: discarded page list.
...d_cpu(cpu); +#if defined(CONFIG_PAGE_DISCARD_LIST) + list_splice_init(&per_cpu(page_discard_list, cpu), + &__get_cpu_var(page_discard_list)); +#endif local_irq_enable(); refresh_cpu_vm_stats(cpu); } @@ -2819,6 +2869,12 @@ static int page_alloc_cpu_notify(struct void __init page_alloc_init(void) { +#if defined(CONFIG_PAGE_DISCARD_LIST) + int i; + + for_each_possible_cpu(i) + INIT_LIST_HEAD(&per_cpu(page_discard_list, i)); +#endif hotcpu_notifier(page_alloc_cpu_notify, 0); } diff -urpN linux-2.6/mm/vmscan.c linux-2.6-patched/mm/vmscan.c --- linux-2.6/mm/vmscan.c 2006-09-01...
2007 Apr 18
1
[patch 8/9] Guest page hinting: discarded page list.
...d_cpu(cpu); +#if defined(CONFIG_PAGE_DISCARD_LIST) + list_splice_init(&per_cpu(page_discard_list, cpu), + &__get_cpu_var(page_discard_list)); +#endif local_irq_enable(); refresh_cpu_vm_stats(cpu); } @@ -2819,6 +2869,12 @@ static int page_alloc_cpu_notify(struct void __init page_alloc_init(void) { +#if defined(CONFIG_PAGE_DISCARD_LIST) + int i; + + for_each_possible_cpu(i) + INIT_LIST_HEAD(&per_cpu(page_discard_list, i)); +#endif hotcpu_notifier(page_alloc_cpu_notify, 0); } diff -urpN linux-2.6/mm/vmscan.c linux-2.6-patched/mm/vmscan.c --- linux-2.6/mm/vmscan.c 2006-09-01...