Skip to content

Commit

Permalink
ARM: tlb: move noMMU tlb_flush() to asm/tlb.h
Browse files Browse the repository at this point in the history
There's no need to noMMU to put tlb_flush() in asm/tlbflush.h - it's
part of the tlb shootdown interface.  Move it to asm/tlb.h instead, as
per x86.

Signed-off-by: Russell King <[email protected]>
  • Loading branch information
Russell King committed Feb 21, 2011
1 parent 06824ba commit 58e9c47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 3 additions & 0 deletions arch/arm/include/asm/tlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
#ifndef CONFIG_MMU

#include <linux/pagemap.h>

#define tlb_flush(tlb) ((void) tlb)

#include <asm-generic/tlb.h>

#else /* !CONFIG_MMU */
Expand Down
7 changes: 1 addition & 6 deletions arch/arm/include/asm/tlbflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@
#ifndef _ASMARM_TLBFLUSH_H
#define _ASMARM_TLBFLUSH_H


#ifndef CONFIG_MMU

#define tlb_flush(tlb) ((void) tlb)

#else /* CONFIG_MMU */
#ifdef CONFIG_MMU

#include <asm/glue.h>

Expand Down

0 comments on commit 58e9c47

Please sign in to comment.