From: Christian Borntraeger Date: Mon, 1 Dec 2014 08:16:45 +0000 (+0100) Subject: s390/debug: avoid function call for debug_sprintf_* X-Git-Tag: omap-for-v3.19/fixes-rc1~124^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=832a771034bf62444796ab8868264c3ea9e50866;p=pandora-kernel.git s390/debug: avoid function call for debug_sprintf_* debug_sprintf_event/exception are called even for debug events with a disabling debug level. All other functions already do the check in a wrapper function. Lets do the same here. Due to the var_args the compiler rejects to make this function inline. So let's wrap this via a macro. This patch saves around 80 ns on my z196 for a KVM round trip (we have two debug statements for entry and exit) when KVM is build as a module. The savings for built-in drivers is smaller as we then avoid the PLT overhead for a function call. Signed-off-by: Christian Borntraeger Reviewed-by: Michael Holzheu Reviewed-by: David Hildenbrand Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed