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:
zhanghongyu 2024-06-17 19:34:14 +08:00 committed by Alan Carvalho de Assis
parent d53d7d6c34
commit 84f4bd6ec1

View File

@ -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
****************************************************************************/