Skip to content

Commit

Permalink
ARM: remove unused adjust_cr() function
Browse files Browse the repository at this point in the history
adjust_cr() is not used anymore, so let's get rid of it.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Jun 2, 2014
1 parent 175352a commit c6e1360
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
4 changes: 0 additions & 4 deletions arch/arm/include/asm/cp15.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ static inline void set_auxcr(unsigned int val)
isb();
}

#ifndef CONFIG_SMP
extern void adjust_cr(unsigned long mask, unsigned long set);
#endif

#define CPACC_FULL(n) (3 << (n * 2))
#define CPACC_SVC(n) (1 << (n * 2))
#define CPACC_DISABLE(n) (0 << (n * 2))
Expand Down
20 changes: 0 additions & 20 deletions arch/arm/mm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,26 +186,6 @@ static int __init early_ecc(char *p)
early_param("ecc", early_ecc);
#endif

#ifndef CONFIG_SMP
void adjust_cr(unsigned long mask, unsigned long set)
{
unsigned long flags;

mask &= ~CR_A;

set &= mask;

local_irq_save(flags);

cr_no_alignment = (cr_no_alignment & ~mask) | set;
cr_alignment = (cr_alignment & ~mask) | set;

set_cr((get_cr() & ~mask) | set);

local_irq_restore(flags);
}
#endif

#else /* ifdef CONFIG_CPU_CP15 */

static int __init early_cachepolicy(char *p)
Expand Down

0 comments on commit c6e1360

Please sign in to comment.