projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'docs-5.15' of git://git.lwn.net/linux
[linux-2.6-microblaze.git]
/
arch
/
s390
/
kernel
/
topology.c
diff --git
a/arch/s390/kernel/topology.c
b/arch/s390/kernel/topology.c
index
26aa261
..
d2458a2
100644
(file)
--- a/
arch/s390/kernel/topology.c
+++ b/
arch/s390/kernel/topology.c
@@
-406,7
+406,7
@@
static ssize_t dispatching_store(struct device *dev,
if (val != 0 && val != 1)
return -EINVAL;
rc = 0;
if (val != 0 && val != 1)
return -EINVAL;
rc = 0;
-
get_online_cpus
();
+
cpus_read_lock
();
mutex_lock(&smp_cpu_state_mutex);
if (cpu_management == val)
goto out;
mutex_lock(&smp_cpu_state_mutex);
if (cpu_management == val)
goto out;
@@
-417,7
+417,7
@@
static ssize_t dispatching_store(struct device *dev,
topology_expect_change();
out:
mutex_unlock(&smp_cpu_state_mutex);
topology_expect_change();
out:
mutex_unlock(&smp_cpu_state_mutex);
-
put_online_cpus
();
+
cpus_read_unlock
();
return rc ? rc : count;
}
static DEVICE_ATTR_RW(dispatching);
return rc ? rc : count;
}
static DEVICE_ATTR_RW(dispatching);