bounds.c (3eb66e91a25497065c5322b1268cbc3953642227) bounds.c (ec1c86b25f4bdd9dce6436c0539d2a6ae676e1c4)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Generate definitions needed by the preprocessor.
4 * This code generates raw asm output which is post-processed
5 * to extract and format the required data.
6 */
7
8#define __GENERATING_BOUNDS_H

--- 8 unchanged lines hidden (view full) ---

17{
18 /* The enum constants to put into include/generated/bounds.h */
19 DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS);
20 DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES);
21#ifdef CONFIG_SMP
22 DEFINE(NR_CPUS_BITS, ilog2(CONFIG_NR_CPUS));
23#endif
24 DEFINE(SPINLOCK_SIZE, sizeof(spinlock_t));
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Generate definitions needed by the preprocessor.
4 * This code generates raw asm output which is post-processed
5 * to extract and format the required data.
6 */
7
8#define __GENERATING_BOUNDS_H

--- 8 unchanged lines hidden (view full) ---

17{
18 /* The enum constants to put into include/generated/bounds.h */
19 DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS);
20 DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES);
21#ifdef CONFIG_SMP
22 DEFINE(NR_CPUS_BITS, ilog2(CONFIG_NR_CPUS));
23#endif
24 DEFINE(SPINLOCK_SIZE, sizeof(spinlock_t));
25#ifdef CONFIG_LRU_GEN
26 DEFINE(LRU_GEN_WIDTH, order_base_2(MAX_NR_GENS + 1));
27#else
28 DEFINE(LRU_GEN_WIDTH, 0);
29#endif
25 /* End of constants */
26
27 return 0;
28}
30 /* End of constants */
31
32 return 0;
33}