remove redudant shit
This commit is contained in:
parent
e7a82bfb66
commit
6ff604dd38
11
topop.h
11
topop.h
@ -5,11 +5,6 @@
|
||||
|
||||
#define TOPO_MAX_CHILDREN (256)
|
||||
|
||||
#define ALLOC_MAX_OBJS_PER_LVL (256)
|
||||
#define ALLOC_MEM_OBJ_SIZE (4096) // 4k
|
||||
#define ALLOC_MEM_OBJ_NUM (1024 * 256) // 4k * 1024 * 256 = 1GB per region
|
||||
#define ALLOC_MEM_REGION_NUM (4) // 4 x 1GB = 4GB total
|
||||
|
||||
struct topo_desc {
|
||||
struct topo_obj * root;
|
||||
int core_to_numa_lookup[TOPO_MAX_CHILDREN];
|
||||
@ -18,12 +13,6 @@ struct topo_desc {
|
||||
|
||||
// ts
|
||||
uint64_t tsc_freq;
|
||||
|
||||
// alloc
|
||||
pthread_mutex_t alloc_lock;
|
||||
int mem_idx[ALLOC_MAX_OBJS_PER_LVL];
|
||||
int mem_region_idx[ALLOC_MAX_OBJS_PER_LVL];
|
||||
void* mem_regions[ALLOC_MAX_OBJS_PER_LVL][ALLOC_MEM_REGION_NUM];
|
||||
};
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user