Skip to content

Commit

Permalink
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/…
Browse files Browse the repository at this point in the history
…git/arm64/linux

Pull arm64 fixes from Catalin Marinas:
 - compat renameat2 syscall wiring and __NR_compat_syscalls fix
 - TLB fix for transparent huge pages following switch to generic
   mmu_gather
 - spinlock initialisation for init_mm's context
 - move of_clk_init() earlier
 - Kconfig duplicate entry fix

* tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
  arm64: init: Move of_clk_init to time_init
  arm64: initialize spinlock for init_mm's context
  arm64: debug: remove noisy, pointless warning
  arm64: mm: Add THP TLB entries to general mmu_gather
  arm64: add renameat2 compat syscall
  ARM64: Remove duplicated Kconfig entry for "kernel/power/Kconfig"
  arm64: __NR_compat_syscalls fix
  • Loading branch information
Linus Torvalds committed Apr 27, 2014
2 parents d9e9e8e + bc3ee18 commit afa3cad
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
2 changes: 0 additions & 2 deletions arch/arm64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,6 @@ menu "CPU Power Management"

source "drivers/cpuidle/Kconfig"

source "kernel/power/Kconfig"

source "drivers/cpufreq/Kconfig"

endmenu
Expand Down
3 changes: 3 additions & 0 deletions arch/arm64/include/asm/mmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ typedef struct {
void *vdso;
} mm_context_t;

#define INIT_MM_CONTEXT(name) \
.context.id_lock = __RAW_SPIN_LOCK_UNLOCKED(name.context.id_lock),

#define ASID(mm) ((mm)->context.id & 0xffff)

extern void paging_init(void);
Expand Down
6 changes: 6 additions & 0 deletions arch/arm64/include/asm/tlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#ifndef __ASM_TLB_H
#define __ASM_TLB_H

#define __tlb_remove_pmd_tlb_entry __tlb_remove_pmd_tlb_entry

#include <asm-generic/tlb.h>

Expand Down Expand Up @@ -99,5 +100,10 @@ static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmdp,
}
#endif

static inline void __tlb_remove_pmd_tlb_entry(struct mmu_gather *tlb, pmd_t *pmdp,
unsigned long address)
{
tlb_add_flush(tlb, address);
}

#endif
3 changes: 2 additions & 1 deletion arch/arm64/include/asm/unistd32.h
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,9 @@ __SYSCALL(378, sys_kcmp)
__SYSCALL(379, sys_finit_module)
__SYSCALL(380, sys_sched_setattr)
__SYSCALL(381, sys_sched_getattr)
__SYSCALL(382, sys_renameat2)

#define __NR_compat_syscalls 379
#define __NR_compat_syscalls 383

/*
* Compat syscall numbers used by the AArch64 kernel.
Expand Down
3 changes: 0 additions & 3 deletions arch/arm64/kernel/debug-monitors.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,6 @@ static int brk_handler(unsigned long addr, unsigned int esr,
if (call_break_hook(regs, esr) == DBG_HOOK_HANDLED)
return 0;

pr_warn("unexpected brk exception at %lx, esr=0x%x\n",
(long)instruction_pointer(regs), esr);

if (!user_mode(regs))
return -EFAULT;

Expand Down
1 change: 0 additions & 1 deletion arch/arm64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ void __init setup_arch(char **cmdline_p)

static int __init arm64_device_init(void)
{
of_clk_init(NULL);
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
return 0;
}
Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/irq.h>
#include <linux/delay.h>
#include <linux/clocksource.h>
#include <linux/clk-provider.h>

#include <clocksource/arm_arch_timer.h>

Expand Down Expand Up @@ -65,6 +66,7 @@ void __init time_init(void)
{
u32 arch_timer_rate;

of_clk_init(NULL);
clocksource_of_init();

arch_timer_rate = arch_timer_get_rate();
Expand Down

0 comments on commit afa3cad

Please sign in to comment.