diff options
author | Dave Hansen <dave.hansen@linux.intel.com> | 2017-12-04 15:07:54 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-12-22 20:13:03 +0100 |
commit | 50fb83a62cf472dc53ba23bd3f7bd6c1b2b3b53e (patch) | |
tree | a22a6fc2e7adf068e1795fe673a6f5b49d0d9435 /lib/bsearch.c | |
parent | 3f67af51e56f291d7417d77c4f67cd774633c5e1 (diff) | |
download | linux-50fb83a62cf472dc53ba23bd3f7bd6c1b2b3b53e.tar.gz linux-50fb83a62cf472dc53ba23bd3f7bd6c1b2b3b53e.tar.bz2 linux-50fb83a62cf472dc53ba23bd3f7bd6c1b2b3b53e.zip |
x86/mm: Move the CR3 construction functions to tlbflush.h
For flushing the TLB, the ASID which has been programmed into the hardware
must be known. That differs from what is in 'cpu_tlbstate'.
Add functions to transform the 'cpu_tlbstate' values into to the one
programmed into the hardware (CR3).
It's not easy to include mmu_context.h into tlbflush.h, so just move the
CR3 building over to tlbflush.h.
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: David Laight <David.Laight@aculab.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Eduardo Valentin <eduval@amazon.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will.deacon@arm.com>
Cc: aliguori@amazon.com
Cc: daniel.gruss@iaik.tugraz.at
Cc: hughd@google.com
Cc: keescook@google.com
Cc: linux-mm@kvack.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/bsearch.c')
0 files changed, 0 insertions, 0 deletions