sysinfo.h: add get_nprocs_conf/get_nprocs definition
This definition was added in order to solve some compilation problems encountered when porting tripartite libraries Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
d53d7d6c34
commit
84f4bd6ec1
@ -33,6 +33,14 @@
|
||||
|
||||
#define SI_LOAD_SHIFT 16
|
||||
|
||||
#ifdef CONFIG_SMP_NCPUS
|
||||
#define get_nprocs() CONFIG_SMP_NCPUS
|
||||
#define get_nprocs_conf() CONFIG_SMP_NCPUS
|
||||
#else
|
||||
#define get_nprocs() 1
|
||||
#define get_nprocs_conf() 1
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Type Definitions
|
||||
****************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user