mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-13 10:08:19 +00:00
[ARM] 4842/1: pxa: remove redundant IRQ saving/restoring in clk_pxa3xx_cken_*
This is unnecessary since it is already protected by spin_lock_irq{save, restore} in clock.c. Signed-off-by: eric miao <eric.miao@marvell.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
7a987e82cd
commit
ceee4f98f7
1 changed files with 0 additions and 8 deletions
|
@ -129,28 +129,20 @@ static void clk_pxa3xx_cken_enable(struct clk *clk)
|
||||||
{
|
{
|
||||||
unsigned long mask = 1ul << (clk->cken & 0x1f);
|
unsigned long mask = 1ul << (clk->cken & 0x1f);
|
||||||
|
|
||||||
local_irq_disable();
|
|
||||||
|
|
||||||
if (clk->cken < 32)
|
if (clk->cken < 32)
|
||||||
CKENA |= mask;
|
CKENA |= mask;
|
||||||
else
|
else
|
||||||
CKENB |= mask;
|
CKENB |= mask;
|
||||||
|
|
||||||
local_irq_enable();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void clk_pxa3xx_cken_disable(struct clk *clk)
|
static void clk_pxa3xx_cken_disable(struct clk *clk)
|
||||||
{
|
{
|
||||||
unsigned long mask = 1ul << (clk->cken & 0x1f);
|
unsigned long mask = 1ul << (clk->cken & 0x1f);
|
||||||
|
|
||||||
local_irq_disable();
|
|
||||||
|
|
||||||
if (clk->cken < 32)
|
if (clk->cken < 32)
|
||||||
CKENA &= ~mask;
|
CKENA &= ~mask;
|
||||||
else
|
else
|
||||||
CKENB &= ~mask;
|
CKENB &= ~mask;
|
||||||
|
|
||||||
local_irq_enable();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct clkops clk_pxa3xx_cken_ops = {
|
static const struct clkops clk_pxa3xx_cken_ops = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue