diff options
author | Petr Mladek <pmladek@suse.com> | 2024-05-15 11:58:26 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2024-05-15 11:58:26 +0200 |
commit | dafc2d0f1bb9bb865a8420f77de56bafd8881cc5 (patch) | |
tree | d342568bc9498c5f4949ece6ce3e2c91dde08335 /include/linux/threads.h | |
parent | e0550222e03bae3fd629641e246ef7f47803d795 (diff) | |
parent | 27021649ec88cf9aa14d2ac7e7f2e6789f055978 (diff) |
Merge branch 'for-6.10-base-small' into for-linus
Diffstat (limited to 'include/linux/threads.h')
-rw-r--r-- | include/linux/threads.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/threads.h b/include/linux/threads.h index c34173e6c5f1..1674a471b0b4 100644 --- a/include/linux/threads.h +++ b/include/linux/threads.h @@ -25,13 +25,13 @@ /* * This controls the default maximum pid allocated to a process */ -#define PID_MAX_DEFAULT (CONFIG_BASE_SMALL ? 0x1000 : 0x8000) +#define PID_MAX_DEFAULT (IS_ENABLED(CONFIG_BASE_SMALL) ? 0x1000 : 0x8000) /* * A maximum of 4 million PIDs should be enough for a while. * [NOTE: PID/TIDs are limited to 2^30 ~= 1 billion, see FUTEX_TID_MASK.] */ -#define PID_MAX_LIMIT (CONFIG_BASE_SMALL ? PAGE_SIZE * 8 : \ +#define PID_MAX_LIMIT (IS_ENABLED(CONFIG_BASE_SMALL) ? PAGE_SIZE * 8 : \ (sizeof(long) > 4 ? 4 * 1024 * 1024 : PID_MAX_DEFAULT)) /* |