kernel: add per-cpu data section to kernel image
This commit is contained in:
13
include/socks/cpu.h
Normal file
13
include/socks/cpu.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef SOCKS_CPU_H_
|
||||
#define SOCKS_CPU_H_
|
||||
|
||||
#include <socks/bitmap.h>
|
||||
|
||||
/* maximum number of processor cores that the kernel can support.
|
||||
TODO move to build config option */
|
||||
#define CPU_MAX 128
|
||||
|
||||
DECLARE_BITMAP(cpu_available, CPU_MAX);
|
||||
DECLARE_BITMAP(cpu_online, CPU_MAX);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user