summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorHarald Freudenberger <freude@linux.ibm.com>2022-10-21 15:41:00 +0200
committerHeiko Carstens <hca@linux.ibm.com>2023-03-20 11:12:49 +0100
commit263c8454dbffd4b878ea9bb403e157a56de98aca (patch)
treef19d486526f2c6a69986424b956aa5570c660857 /drivers/char
parentc81cf436e47c34d2ff29e1b3db296f00d55b1c6f (diff)
s390/ap: introduce low frequency polling possibility
For some events the ap bus needs to poll. For example when an AP queue is reset until the reset is through. Also when no interrupt support is available (e.g. zVM) there is a need to poll until all requests have been processed and all replies have been delivered. Polling is done with a high resolution timer by default run with a rate of 4kHz (LPAR) or 666Hz (zVM guest). For some events (wait for reset complete, wait for irq enabled complete) this is a much too high poll rate which triggers a lot of TAPQ invocations. This patch introduces the possibility for the state machine functions to return a new wait enum AP_SM_WAIT_LOW_TIMEOUT which gives a hint to the ap_wait() function to eventually set up the timer with a more relaxed timeout value of 25Hz. This patch also includes a slight rework of the sysfs functions parsing the timer related stuff: Use of kstrtobool and kstrtoul instead of sscanf. Signed-off-by: Harald Freudenberger <freude@linux.ibm.com> Reviewed-by: Holger Dengler <dengler@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions