• Rik van Riel's avatar
    x86/fpu: Remove 'cpu' argument from __cpu_invalidate_fpregs_state() · 317b622c
    Rik van Riel authored
    The __{fpu,cpu}_invalidate_fpregs_state() functions can only be used
    to invalidate a resource they control.  Document that, and change
    the API a little bit to reflect that.
    
    Go back to open coding the fpu_fpregs_owner_ctx write in the CPU
    hotplug code, which should be the exception, and move __kernel_fpu_begin()
    to this API.
    
    This patch has no functional changes to the current code.
    Signed-off-by: default avatarRik van Riel <riel@redhat.com>
    Acked-by: default avatarDave Hansen <dave.hansen@intel.com>
    Cc: Andy Lutomirski <luto@kernel.org>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Brian Gerst <brgerst@gmail.com>
    Cc: Dave Hansen <dave.hansen@linux.intel.com>
    Cc: Denys Vlasenko <dvlasenk@redhat.com>
    Cc: Fenghua Yu <fenghua.yu@intel.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Josh Poimboeuf <jpoimboe@redhat.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Quentin Casasnovas <quentin.casasnovas@oracle.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Link: http://lkml.kernel.org/r/1476447331-21566-2-git-send-email-riel@redhat.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    317b622c
core.c 13.4 KB