mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
mm/vmacache, sched/headers: Introduce 'struct vmacache' and move it from <linux/sched.h> to <linux/mm_types>
The <linux/sched.h> header includes various vmacache related defines, which are arguably misplaced. Move them to mm_types.h and minimize the sched.h impact by putting all task vmacache state into a new 'struct vmacache' structure. No change in functionality. Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
780de9dd27
commit
314ff7851f
6 changed files with 25 additions and 16 deletions
|
@ -232,9 +232,9 @@ static void kgdb_flush_swbreak_addr(unsigned long addr)
|
|||
int i;
|
||||
|
||||
for (i = 0; i < VMACACHE_SIZE; i++) {
|
||||
if (!current->vmacache[i])
|
||||
if (!current->vmacache.vmas[i])
|
||||
continue;
|
||||
flush_cache_range(current->vmacache[i],
|
||||
flush_cache_range(current->vmacache.vmas[i],
|
||||
addr, addr + BREAK_INSTR_SIZE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue