Skip to content

Commit fe87f94

Browse files
jniaxhtejun
authored andcommitted
CRIS: Change DEFINE_PER_CPU of current_pgd to be non volatile.
The DEFINE_PER_CPU of current_pgd was on CRIS defined using volatile, which is not needed. Remove volatile. Tested on an ARTPEC-3 (CRISv32) board. tj: extern DEFINE_PER_CPU() replaced with DECLARE_PER_CPU() [ Impact: code cleanup ] Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 405d967 commit fe87f94

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎arch/cris/include/asm/mmu_context.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ extern void switch_mm(struct mm_struct *prev, struct mm_struct *next,
1717
* registers like cr3 on the i386
1818
*/
1919

20-
extern volatile DEFINE_PER_CPU(pgd_t *,current_pgd); /* defined in arch/cris/mm/fault.c */
20+
/* defined in arch/cris/mm/fault.c */
21+
DECLARE_PER_CPU(pgd_t *, current_pgd);
2122

2223
static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
2324
{

‎arch/cris/mm/fault.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extern void die_if_kernel(const char *, struct pt_regs *, long);
2929

3030
/* current active page directory */
3131

32-
volatile DEFINE_PER_CPU(pgd_t *,current_pgd);
32+
DEFINE_PER_CPU(pgd_t *, current_pgd);
3333
unsigned long cris_signal_return_page;
3434

3535
/*

0 commit comments

Comments
 (0)