Skip to content

Commit

Permalink
CRIS: Change DEFINE_PER_CPU of current_pgd to be non volatile.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
  • Loading branch information
jniax authored and htejun committed Jun 24, 2009
1 parent 405d967 commit fe87f94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion arch/cris/include/asm/mmu_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ extern void switch_mm(struct mm_struct *prev, struct mm_struct *next,
* registers like cr3 on the i386
*/

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

static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/cris/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extern void die_if_kernel(const char *, struct pt_regs *, long);

/* current active page directory */

volatile DEFINE_PER_CPU(pgd_t *,current_pgd);
DEFINE_PER_CPU(pgd_t *, current_pgd);
unsigned long cris_signal_return_page;

/*
Expand Down

0 comments on commit fe87f94

Please sign in to comment.