MIPS: mm: Move UNIQUE_ENTRYHI macro to a header file
The UNIQUE_ENTRYHI definition was duplicated whenever there was the need to flush the TLB entries. We move this common definition to a header file. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Signed-off-by: John Crispin <blogic@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/6129/
This commit is contained in:

committed by
Ralf Baechle

parent
691038ba45
commit
c01905eeee
@@ -171,8 +171,6 @@ void *kmap_coherent(struct page *page, unsigned long addr)
|
||||
return (void*) vaddr;
|
||||
}
|
||||
|
||||
#define UNIQUE_ENTRYHI(idx) (CKSEG0 + ((idx) << (PAGE_SHIFT + 1)))
|
||||
|
||||
void kunmap_coherent(void)
|
||||
{
|
||||
#ifndef CONFIG_MIPS_MT_SMTC
|
||||
|
Reference in New Issue
Block a user