lkml.org 
[lkml]   [2012]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 16/40] autonuma: init knuma_migrated queues
    Date
    Initialize the knuma_migrated queues at boot time.

    Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
    ---
    mm/page_alloc.c | 11 +++++++++++
    1 files changed, 11 insertions(+), 0 deletions(-)

    diff --git a/mm/page_alloc.c b/mm/page_alloc.c
    index a9710a4..48eabe9 100644
    --- a/mm/page_alloc.c
    +++ b/mm/page_alloc.c
    @@ -59,6 +59,7 @@
    #include <linux/prefetch.h>
    #include <linux/migrate.h>
    #include <linux/page-debug-flags.h>
    +#include <linux/autonuma.h>

    #include <asm/tlbflush.h>
    #include <asm/div64.h>
    @@ -4348,8 +4349,18 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat,
    int nid = pgdat->node_id;
    unsigned long zone_start_pfn = pgdat->node_start_pfn;
    int ret;
    +#ifdef CONFIG_AUTONUMA
    + int node_iter;
    +#endif

    pgdat_resize_init(pgdat);
    +#ifdef CONFIG_AUTONUMA
    + spin_lock_init(&pgdat->autonuma_lock);
    + init_waitqueue_head(&pgdat->autonuma_knuma_migrated_wait);
    + pgdat->autonuma_nr_migrate_pages = 0;
    + for_each_node(node_iter)
    + INIT_LIST_HEAD(&pgdat->autonuma_migrate_head[node_iter]);
    +#endif
    pgdat->nr_zones = 0;
    init_waitqueue_head(&pgdat->kswapd_wait);
    pgdat->kswapd_max_order = 0;

    \
     
     \ /
      Last update: 2012-06-28 16:21    [W:4.172 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site