Commit 8a56ce75 authored by Ingo Molnar's avatar Ingo Molnar Committed by Thomas Gleixner

mm-memory-rt

On RT this is not a critical code path. It's preemptible so we go for
the PREEMPT=n case as well.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent e580f506
...@@ -922,10 +922,13 @@ static unsigned long unmap_page_range(struct mmu_gather *tlb, ...@@ -922,10 +922,13 @@ static unsigned long unmap_page_range(struct mmu_gather *tlb,
return addr; return addr;
} }
#ifdef CONFIG_PREEMPT #if defined(CONFIG_PREEMPT) && !defined(CONFIG_PREEMPT_RT)
# define ZAP_BLOCK_SIZE (8 * PAGE_SIZE) # define ZAP_BLOCK_SIZE (8 * PAGE_SIZE)
#else #else
/* No preempt: go for improved straight-line efficiency */ /*
* No preempt: go for improved straight-line efficiency
* on PREEMPT_RT this is not a critical latency-path.
*/
# define ZAP_BLOCK_SIZE (1024 * PAGE_SIZE) # define ZAP_BLOCK_SIZE (1024 * PAGE_SIZE)
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment