Skip to content

Commit

Permalink
Merge master.kernel.org:/home/rmk/linux-2.6-arm
Browse files Browse the repository at this point in the history
* master.kernel.org:/home/rmk/linux-2.6-arm:
  [ARM] 3353/1: NAS100d: protect  nas100d_power_exit() with machine_is_nas100d()
  [ARM] 3352/1: DSB required for the completion of a TLB maintenance operation
  • Loading branch information
Linus Torvalds committed Mar 8, 2006
2 parents 850a9a4 + 744bfe4 commit d423421
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ menu "System Type"

choice
prompt "ARM system type"
default ARCH_RPC
default ARCH_VERSATILE

config ARCH_CLPS7500
bool "Cirrus-CL-PS7500FE"
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/mach-ixp4xx/nas100d-power.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ static int __init nas100d_power_init(void)

static void __exit nas100d_power_exit(void)
{
if (!(machine_is_nas100d()))
return;

free_irq(NAS100D_RB_IRQ, NULL);
}

Expand Down
1 change: 1 addition & 0 deletions arch/arm/mm/tlb-v6.S
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ ENTRY(v6wbi_flush_kern_tlb_range)
add r0, r0, #PAGE_SZ
cmp r0, r1
blo 1b
mcr p15, 0, r2, c7, c10, 4 @ data synchronization barrier
mov pc, lr

.section ".text.init", #alloc, #execinstr
Expand Down
6 changes: 6 additions & 0 deletions include/asm-arm/tlbflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,12 @@ static inline void local_flush_tlb_kernel_page(unsigned long kaddr)
asm("mcr%? p15, 0, %0, c8, c6, 1" : : "r" (kaddr));
if (tlb_flag(TLB_V6_I_PAGE))
asm("mcr%? p15, 0, %0, c8, c5, 1" : : "r" (kaddr));

/* The ARM ARM states that the completion of a TLB maintenance
* operation is only guaranteed by a DSB instruction
*/
if (tlb_flag(TLB_V6_U_PAGE | TLB_V6_D_PAGE | TLB_V6_I_PAGE))
asm("mcr%? p15, 0, %0, c7, c10, 4" : : "r" (zero));
}

/*
Expand Down

0 comments on commit d423421

Please sign in to comment.