s390/topology: enable / disable topology dynamically
authorHeiko Carstens <[email protected]>
Thu, 14 Sep 2017 12:42:32 +0000 (14:42 +0200)
committerMartin Schwidefsky <[email protected]>
Wed, 20 Sep 2017 11:47:55 +0000 (13:47 +0200)
commit51dce3867c6c63c7500332e5448c2ba76808d6b5
tree5d2d0902c2a4ebf9975dd0d70c54b7776dd487e8
parent1b25fda0533462c9cee3a22e8a7bea68fa670af2
s390/topology: enable / disable topology dynamically

Add a new sysctl file /proc/sys/s390/topology which displays if
topology is on (1) or off (0) as specified by the "topology=" kernel
parameter.

This allows to change topology information during runtime and
configuring it via /etc/sysctl.conf instead of using the kernel line
parameter.

Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
arch/s390/kernel/topology.c