Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
1d31c451
Commit
1d31c451
authored
Jul 09, 2002
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Clean up __cli(), __sti(), cli() to use local_irq_*
parent
e0959598
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
arch/arm/kernel/irq.c
arch/arm/kernel/irq.c
+1
-2
arch/arm/kernel/process.c
arch/arm/kernel/process.c
+2
-2
arch/arm/mach-sa1100/generic.c
arch/arm/mach-sa1100/generic.c
+1
-1
include/asm-arm/arch-shark/system.h
include/asm-arm/arch-shark/system.h
+1
-1
No files found.
arch/arm/kernel/irq.c
View file @
1d31c451
...
@@ -202,8 +202,7 @@ __do_irq(unsigned int irq, struct irqaction *action, struct pt_regs *regs)
...
@@ -202,8 +202,7 @@ __do_irq(unsigned int irq, struct irqaction *action, struct pt_regs *regs)
if
(
status
&
SA_SAMPLE_RANDOM
)
if
(
status
&
SA_SAMPLE_RANDOM
)
add_interrupt_randomness
(
irq
);
add_interrupt_randomness
(
irq
);
__cli
();
spin_lock_irq
(
&
irq_controller_lock
);
spin_lock
(
&
irq_controller_lock
);
}
}
/*
/*
...
...
arch/arm/kernel/process.c
View file @
1d31c451
...
@@ -75,10 +75,10 @@ void (*pm_power_off)(void);
...
@@ -75,10 +75,10 @@ void (*pm_power_off)(void);
*/
*/
void
default_idle
(
void
)
void
default_idle
(
void
)
{
{
__cli
();
local_irq_disable
();
if
(
!
need_resched
()
&&
!
hlt_counter
)
if
(
!
need_resched
()
&&
!
hlt_counter
)
arch_idle
();
arch_idle
();
__sti
();
local_irq_enable
();
}
}
/*
/*
...
...
arch/arm/mach-sa1100/generic.c
View file @
1d31c451
...
@@ -100,7 +100,7 @@ EXPORT_SYMBOL(cpufreq_get);
...
@@ -100,7 +100,7 @@ EXPORT_SYMBOL(cpufreq_get);
static
void
sa1100_power_off
(
void
)
static
void
sa1100_power_off
(
void
)
{
{
mdelay
(
100
);
mdelay
(
100
);
cli
();
local_irq_disable
();
/* disable internal oscillator, float CS lines */
/* disable internal oscillator, float CS lines */
PCFR
=
(
PCFR_OPDE
|
PCFR_FP
|
PCFR_FS
);
PCFR
=
(
PCFR_OPDE
|
PCFR_FP
|
PCFR_FS
);
/* enable wake-up on GPIO0 (Assabet...) */
/* enable wake-up on GPIO0 (Assabet...) */
...
...
include/asm-arm/arch-shark/system.h
View file @
1d31c451
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
static
void
arch_reset
(
char
mode
)
static
void
arch_reset
(
char
mode
)
{
{
short
temp
;
short
temp
;
cli
();
local_irq_disable
();
/* Reset the Machine via pc[3] of the sequoia chipset */
/* Reset the Machine via pc[3] of the sequoia chipset */
outw
(
0x09
,
0x24
);
outw
(
0x09
,
0x24
);
temp
=
inw
(
0x26
);
temp
=
inw
(
0x26
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment