diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2015-02-09 12:54:16 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-02-10 10:15:57 +0100 |
commit | 45cce4ccafe3cddc924ef5221d22b9853fc9a13c (patch) | |
tree | 3afaaeec8ecc47be92aa209b715c84522ff9c1f5 /init | |
parent | ea96f78813823ab186e7e52122c06fb9c3cf6e20 (diff) |
s390/cacheinfo: don't use smp_processor_id() in preemptible context
show_cacheinfo() needs to access the cacheinfo structure of any online
cpu. This was done with using smp_processor_id() as in index while in
preemtible context.
This means the cpu could be offline and the data be gone when it would
be accessed.
Better use any online cpu address and protect the data by get_online_cpus()
and put_online_cpus().
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions