commit | 281eaa8cb67c27e56da1e7fd6b55c6cd3e8c4638 | [log] [tgz] |
---|---|---|
author | Heiko Carstens <heiko.carstens@de.ibm.com> | Wed Apr 13 14:49:12 2016 +0200 |
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | Tue May 10 13:24:48 2016 +0200 |
tree | 45225e66680c3cc00e419757641852fa8867c6aa | |
parent | 0c756914920fc13061222d12fbbe85990df64928 [diff] |
s390/cpuinfo: simplify locking and skip offline cpus early Move the get_online_cpus() and put_online_cpus() to the start and stop operation of the seqfile ops. This way there is no need to lock cpu hotplug again and again for each single cpu. This way we can also skip offline cpus early if we simply use cpumask_next() within the next operation. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>