summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/stp.h
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2020-09-15 08:53:50 +0200
committerVasily Gorbik <gor@linux.ibm.com>2020-09-26 15:51:20 +0200
commitb3bd02495cb339124f13135d51940cf48d83e5cb (patch)
tree68397d2b7a494f3cc546a242a19c082077b96835 /arch/s390/include/asm/stp.h
parentfa6999e326fe7851ecbd572b8cb9be8e930ebf41 (diff)
s390/stp: add locking to sysfs functions
The sysfs function might race with stp_work_fn. To prevent that, add the required locking. Another issue is that the sysfs functions are checking the stp_online flag, but this flag just holds the user setting whether STP is enabled. Add a flag to clock_sync_flag whether stp_info holds valid data and use that instead. Cc: stable@vger.kernel.org Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/stp.h')
0 files changed, 0 insertions, 0 deletions