linux/arch/x86/mm/numa_64.c
<<
>>
Prefs
   1/*
   2 * Generic VM initialization for x86-64 NUMA setups.
   3 * Copyright 2002,2003 Andi Kleen, SuSE Labs.
   4 */
   5#include <linux/bootmem.h>
   6
   7#include "numa_internal.h"
   8
   9void __init initmem_init(void)
  10{
  11        x86_numa_init();
  12}
  13
  14unsigned long __init numa_free_all_bootmem(void)
  15{
  16        unsigned long pages = 0;
  17        int i;
  18
  19        for_each_online_node(i)
  20                pages += free_all_bootmem_node(NODE_DATA(i));
  21
  22        pages += free_all_memory_core_early(MAX_NUMNODES);
  23
  24        return pages;
  25}
  26