s390/uv: Refactor uv-sysfs creation
authorSteffen Eiden <seiden@linux.ibm.com>
Tue, 15 Oct 2024 11:39:39 +0000 (13:39 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 29 Oct 2024 10:17:16 +0000 (11:17 +0100)
commitbb4ad73a2893353634ba1844cba026b4546eeb03
treea4031c3d9b687d57da09b5d0e725a5b81519ce87
parentc3a04f7e281d1066dfa4c7e84a98d5c41ae910cc
s390/uv: Refactor uv-sysfs creation

Streamline the sysfs generation to make it more extensible.
Add a function to create a sysfs entry in the uv-sysfs dir.
Use this function for the query directory.

Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Link: https://lore.kernel.org/r/20241015113940.3088249-2-seiden@linux.ibm.com
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/uv.c