]> git.baikalelectronics.ru Git - kernel.git/commit
s390/debug: only write data once
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Thu, 12 Oct 2017 11:57:26 +0000 (13:57 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 18 Oct 2017 12:11:23 +0000 (14:11 +0200)
commite6d6b7a0efe82acfe8881bd3e8b175bb6c081925
tree9a095afe44969df5b0a6ad4ee8a251257db78645
parentc95bb9ae4001fb478f018b29c6cd7dae43a57cbc
s390/debug: only write data once

debug_event_common memsets the active debug entry with zeros to
prevent stale data leakage. This is overwritten with the actual
debug data in the next step. Only write zeros to that part of the
debug entry that's not used by new debug data.

Micro benchmarks show a 2-10% reduction of cpu cycles with this
approach.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Acked-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/debug.c