There's set_node func introduced in commit cb2967b27a65, but we don't have a func to clean the node mask yet.
Signed-off-by: Zhouping Liu <[email protected]> --- testcases/kernel/mem/include/mem.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testcases/kernel/mem/include/mem.h b/testcases/kernel/mem/include/mem.h index 551c73e..e31783e 100644 --- a/testcases/kernel/mem/include/mem.h +++ b/testcases/kernel/mem/include/mem.h @@ -21,6 +21,14 @@ static inline void set_node(unsigned long *array, unsigned int node) array[node / BITS_PER_LONG] |= 1UL << (node % BITS_PER_LONG); } +static inline void clean_node(unsigned long *array) +{ + int i; + + for (i = 0; i < MAXNODES / BITS_PER_LONG; i++) + array[i] &= 0UL; +} + /* OOM */ #define LENGTH (3UL<<30) -- 1.7.11.7 ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
