mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
arch/csky patches for 6.4
The pull request we've done: - Remove CPU_TLB_SIZE config - Prevent spurious page faults -----BEGIN PGP SIGNATURE----- iQJGBAABCAAwFiEE2KAv+isbWR/viAKHAXH1GYaIxXsFAmRToZMSHGd1b3JlbkBr ZXJuZWwub3JnAAoJEAFx9RmGiMV76ysP/i/6w0EJJ/+dh4uVmW8mebOJJAv6YSeL CA78Z9i9/7cHFENl6EOyTZ1OL/ivdTfaLLhgMNvmNiEb7a7EgGn46H1WNoxYgyAP 9EdGXGcHpBfGFaSAxU0qswEVPRzN8e4Sg+fX8HvNF1muycJHwgMNmHGbiU+Pj672 BelnVpbEtTYy8cOUz1Tc8/beRAMj3Q2QjKv4DUws6Yc7yvYwI3RrVHq6cld8VJwE ShoYwsQUBl8ujTfA68s+XJB1t+ymljM2jsSvxQd9RGUVOh6IAhRr7bDzdTU5pRNs hLj7ytoGpWBcKjB3pvKQgXFDaKhrPCPpJAVddUgQWs87iBjVP4ds5Rt1WXUZDHFE Ba+LjBI3dh1MLDYuLcuWgZi7AyGHdcEO0UKe2jRVRZO91GmIw5y4lFjLPoj5+RH8 YVu8anzOZK4qER6cBODjb+wTk3FG0qQuY2j+Q4C57YUi0HeqeknUxQxqwbiQeXio v2p6lPYw6x5IbwSf4sw20km8RVv+jl85w5RM1bpz0L9c0HUkv4frKJiogfmT3wqy ttTbtFHAXAF3HOayLahTygtBx/13Ule3qETGNX7hgoHZrYjYd6dRqhYdQSI6h/hj fkIfNljrwRchri/UmCLVimd8WWO9Rh3T/bhwd4Xt+bLAEpR6K6rFtrqtdhUlAKor QzjZnDKlMtIc =q8dp -----END PGP SIGNATURE----- Merge tag 'csky-for-linus-6.4' of https://github.com/c-sky/csky-linux Pull arch/csky updates from Guo Ren: - Remove CPU_TLB_SIZE config - Prevent spurious page faults * tag 'csky-for-linus-6.4' of https://github.com/c-sky/csky-linux: csky: mmu: Prevent spurious page faults csky: remove obsolete config CPU_TLB_SIZE
This commit is contained in:
commit
a1f749de8a
@ -166,11 +166,6 @@ config STACKTRACE_SUPPORT
|
||||
config TIME_LOW_RES
|
||||
def_bool y
|
||||
|
||||
config CPU_TLB_SIZE
|
||||
int
|
||||
default "128" if (CPU_CK610 || CPU_CK807 || CPU_CK810)
|
||||
default "1024" if (CPU_CK860)
|
||||
|
||||
config CPU_ASID_BITS
|
||||
int
|
||||
default "8" if (CPU_CK610 || CPU_CK807 || CPU_CK810)
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include <asm/cache.h>
|
||||
#include <asm/cacheflush.h>
|
||||
#include <asm/cachectl.h>
|
||||
#include <asm/tlbflush.h>
|
||||
|
||||
#define PG_dcache_clean PG_arch_1
|
||||
|
||||
@ -40,6 +41,8 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long addr,
|
||||
unsigned long pfn = pte_pfn(*ptep);
|
||||
struct page *page;
|
||||
|
||||
flush_tlb_page(vma, addr);
|
||||
|
||||
if (!pfn_valid(pfn))
|
||||
return;
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include <linux/highmem.h>
|
||||
#include <linux/mm.h>
|
||||
#include <asm/cache.h>
|
||||
#include <asm/tlbflush.h>
|
||||
|
||||
void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,
|
||||
pte_t *pte)
|
||||
@ -12,6 +13,8 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,
|
||||
unsigned long addr;
|
||||
struct page *page;
|
||||
|
||||
flush_tlb_page(vma, address);
|
||||
|
||||
if (!pfn_valid(pte_pfn(*pte)))
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user