Skip to content

Commit a2b03e4

Browse files
committed
Merge tag 'for-linus' of git://github.com/openrisc/linux
Pull OpenRISC updates from Stafford Horne: "This includes two minor cleanups, plus a bug fix for OpenRISC TLB flush code that allows the the SMP kernel to boot again" * tag 'for-linus' of git://github.com/openrisc/linux: openrisc: fix SMP tlb flush NULL pointer dereference openrisc: signal: remove unused DEBUG_SIG macro openrisc: time: don't mark comment as kernel-doc
2 parents bbdbeb0 + 27dff9a commit a2b03e4

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

arch/openrisc/kernel/dma.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ page_set_nocache(pte_t *pte, unsigned long addr,
3333
* Flush the page out of the TLB so that the new page flags get
3434
* picked up next time there's an access
3535
*/
36-
flush_tlb_page(NULL, addr);
36+
flush_tlb_kernel_range(addr, addr + PAGE_SIZE);
3737

3838
/* Flush page out of dcache */
3939
for (cl = __pa(addr); cl < __pa(next); cl += cpuinfo->dcache_block_size)
@@ -56,7 +56,7 @@ page_clear_nocache(pte_t *pte, unsigned long addr,
5656
* Flush the page out of the TLB so that the new page flags get
5757
* picked up next time there's an access
5858
*/
59-
flush_tlb_page(NULL, addr);
59+
flush_tlb_kernel_range(addr, addr + PAGE_SIZE);
6060

6161
return 0;
6262
}

arch/openrisc/kernel/signal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
#include <asm/ucontext.h>
2929
#include <linux/uaccess.h>
3030

31-
#define DEBUG_SIG 0
32-
3331
struct rt_sigframe {
3432
struct siginfo info;
3533
struct ucontext uc;

arch/openrisc/kernel/smp.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ static inline void ipi_flush_tlb_range(void *info)
268268
local_flush_tlb_range(NULL, fd->addr1, fd->addr2);
269269
}
270270

271-
static void smp_flush_tlb_range(struct cpumask *cmask, unsigned long start,
271+
static void smp_flush_tlb_range(const struct cpumask *cmask, unsigned long start,
272272
unsigned long end)
273273
{
274274
unsigned int cpuid;
@@ -316,7 +316,9 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long uaddr)
316316
void flush_tlb_range(struct vm_area_struct *vma,
317317
unsigned long start, unsigned long end)
318318
{
319-
smp_flush_tlb_range(mm_cpumask(vma->vm_mm), start, end);
319+
const struct cpumask *cmask = vma ? mm_cpumask(vma->vm_mm)
320+
: cpu_online_mask;
321+
smp_flush_tlb_range(cmask, start, end);
320322
}
321323

322324
/* Instruction cache invalidate - performed on each cpu */

arch/openrisc/kernel/time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ irqreturn_t __irq_entry timer_interrupt(struct pt_regs *regs)
127127
return IRQ_HANDLED;
128128
}
129129

130-
/**
130+
/*
131131
* Clocksource: Based on OpenRISC timer/counter
132132
*
133133
* This sets up the OpenRISC Tick Timer as a clock source. The tick timer

0 commit comments

Comments
 (0)