Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 62c8dca9 authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik
Browse files

s390/smp: __smp_rescan_cpus() - move cpumask away from stack


Avoid a potentially large stack frame and overflow by making
"cpumask_t avail" a static variable. There is no concurrent
access due to the existing locking.

Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 588a079e
Branches
Tags
No related merge requests found
...@@ -775,7 +775,7 @@ static int smp_add_core(struct sclp_core_entry *core, cpumask_t *avail, ...@@ -775,7 +775,7 @@ static int smp_add_core(struct sclp_core_entry *core, cpumask_t *avail,
static int __smp_rescan_cpus(struct sclp_core_info *info, bool early) static int __smp_rescan_cpus(struct sclp_core_info *info, bool early)
{ {
struct sclp_core_entry *core; struct sclp_core_entry *core;
cpumask_t avail; static cpumask_t avail;
bool configured; bool configured;
u16 core_id; u16 core_id;
int nr, i; int nr, i;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment