X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Fliblustre.h;h=2e4968fdc2cac707a11d5e3b2de6945c185f6fd4;hp=76f2d24bd377eb2bcede8805dd9093172b908bd3;hb=d4a31821ccd63fcc5197680300bdc37a9453a332;hpb=da7e7e8c73cd41a79be44e28cdfce39ad7ffc986 diff --git a/lustre/include/liblustre.h b/lustre/include/liblustre.h index 76f2d24..2e4968f 100644 --- a/lustre/include/liblustre.h +++ b/lustre/include/liblustre.h @@ -96,8 +96,11 @@ typedef unsigned short umode_t; #ifndef smp_processor_id #define smp_processor_id() 0 #endif -#ifndef smp_num_cpus -#define smp_num_cpus 1 +#ifndef num_online_cpus +#define num_online_cpus() 1 +#endif +#ifndef num_possible_cpus +#define num_possible_cpus() 1 #endif /* always adopt 2.5 definitions */