mem_init(): parse NUMA information

This commit is contained in:
Balazs Gerofi
2016-09-02 16:02:31 +09:00
parent 9b82f1a52c
commit 326a4fcee4
2 changed files with 34 additions and 0 deletions

View File

@@ -151,6 +151,14 @@ int ihk_mc_pt_virt_to_phys(struct page_table *pt,
const void *virt, unsigned long *phys);
uint64_t ihk_mc_pt_virt_to_pagemap(struct page_table *pt, unsigned long virt);
int ihk_mc_get_nr_numa_nodes(void);
int ihk_mc_get_numa_node(int id, int *linux_numa_id, int *type);
int ihk_mc_get_nr_memory_chunks(void);
int ihk_mc_get_memory_chunk(int id,
unsigned long *start,
unsigned long *end,
int *linux_numa_id);
void remote_flush_tlb_cpumask(struct process_vm *vm,
unsigned long addr, int cpu_id);