Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8603
b: refs/heads/master
c: 2b4a081
h: refs/heads/master
i:
  8601: 967c029
  8599: b6a9bc4
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Sep 12, 2005
1 parent 8c414e1 commit 3306a10
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 165aeb82848c81ee1774f8defc74df4341e9184b
refs/heads/master: 2b4a08150e0ce2f6eb5d0987fdfe3524ec799313
6 changes: 5 additions & 1 deletion trunk/include/asm-generic/tlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
* and page free order so much..
*/
#ifdef CONFIG_SMP
#define FREE_PTE_NR 506
#ifdef ARCH_FREE_PTR_NR
#define FREE_PTR_NR ARCH_FREE_PTR_NR
#else
#define FREE_PTE_NR 506
#endif
#define tlb_fast_mode(tlb) ((tlb)->nr == ~0U)
#else
#define FREE_PTE_NR 1
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/asm-x86_64/tlbflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ static inline void flush_tlb_range(struct vm_area_struct * vma, unsigned long st
#define TLBSTATE_OK 1
#define TLBSTATE_LAZY 2

/* Roughly an IPI every 20MB with 4k pages for freeing page table
ranges. Cost is about 42k of memory for each CPU. */
#define ARCH_FREE_PTE_NR 5350

#endif

#define flush_tlb_kernel_range(start, end) flush_tlb_all()
Expand Down

0 comments on commit 3306a10

Please sign in to comment.