context_tracking: remove duplicate enabled check
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 28 Oct 2015 01:39:55 +0000 (02:39 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Nov 2015 11:06:22 +0000 (12:06 +0100)
commitf70cd6b07e629f367bb9b1ac9d0e3e669eb325c0
treed7598a2f03f41b30d8dd415eabcc27f9785bbc58
parent8cfe9866960581303f244780945c5d12ecc4e5bc
context_tracking: remove duplicate enabled check

All calls to context_tracking_enter and context_tracking_exit
are already checking context_tracking_is_enabled, except the
context_tracking_user_enter and context_tracking_user_exit
functions left in for the benefit of assembly calls.

Pull the check up to those functions, by making them simple
wrappers around the user_enter and user_exit inline functions.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Tested-by: Rik van Riel <riel@redhat.com>
Acked-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/context_tracking.h
kernel/context_tracking.c