mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
page table handling cleanup
Kill pte_rdprotect(), pte_exprotect(), pte_mkread(), pte_mkexec(), pte_read(), pte_exec(), and pte_user() except where arch-specific code is making use of them. Signed-off-by: Jan Beulich <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Christoph Hellwig <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
98011f569e
commit
45e98cdb6d
28 changed files with 1 additions and 311 deletions
|
|
@ -573,24 +573,6 @@ static inline unsigned long pte_exec(pte_t pte)
|
|||
return (pte_val(pte) & mask);
|
||||
}
|
||||
|
||||
static inline unsigned long pte_read(pte_t pte)
|
||||
{
|
||||
unsigned long mask;
|
||||
|
||||
__asm__ __volatile__(
|
||||
"\n661: mov %1, %0\n"
|
||||
" nop\n"
|
||||
" .section .sun4v_2insn_patch, \"ax\"\n"
|
||||
" .word 661b\n"
|
||||
" sethi %%uhi(%2), %0\n"
|
||||
" sllx %0, 32, %0\n"
|
||||
" .previous\n"
|
||||
: "=r" (mask)
|
||||
: "i" (_PAGE_READ_4U), "i" (_PAGE_READ_4V));
|
||||
|
||||
return (pte_val(pte) & mask);
|
||||
}
|
||||
|
||||
static inline unsigned long pte_file(pte_t pte)
|
||||
{
|
||||
unsigned long val = pte_val(pte);
|
||||
|
|
|
|||
Loading…
Reference in a new issue