Skip to content

Commit 694b8c3

Browse files
Manuel Laussralfbaechle
authored andcommitted
MIPS: Remove __init from add_wired_entry()
For Alchemy-PCI I need to add a wired entry after resuming from RAM; remove the __init from add_wired_entry() so that this actually works. Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com> To: Linux-MIPS <linux-mips@linux-mips.org> Patchwork: https://patchwork.linux-mips.org/patch/2684/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 1177d99 commit 694b8c3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎arch/mips/mm/tlb-r3k.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ void __update_tlb(struct vm_area_struct *vma, unsigned long address, pte_t pte)
223223
local_irq_restore(flags);
224224
}
225225

226-
void __init add_wired_entry(unsigned long entrylo0, unsigned long entrylo1,
227-
unsigned long entryhi, unsigned long pagemask)
226+
void add_wired_entry(unsigned long entrylo0, unsigned long entrylo1,
227+
unsigned long entryhi, unsigned long pagemask)
228228
{
229229
unsigned long flags;
230230
unsigned long old_ctx;

‎arch/mips/mm/tlb-r4k.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ void __update_tlb(struct vm_area_struct * vma, unsigned long address, pte_t pte)
337337
EXIT_CRITICAL(flags);
338338
}
339339

340-
void __init add_wired_entry(unsigned long entrylo0, unsigned long entrylo1,
341-
unsigned long entryhi, unsigned long pagemask)
340+
void add_wired_entry(unsigned long entrylo0, unsigned long entrylo1,
341+
unsigned long entryhi, unsigned long pagemask)
342342
{
343343
unsigned long flags;
344344
unsigned long wired;

0 commit comments

Comments
 (0)