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
Kirill Smelkov
linux
Commits
e7c306e5
Commit
e7c306e5
authored
Sep 14, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
7a77ce94
f9cd0342
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
arch/arm/mach-pxa/pm.c
arch/arm/mach-pxa/pm.c
+4
-3
arch/arm/mach-sa1100/pm.c
arch/arm/mach-sa1100/pm.c
+4
-3
No files found.
arch/arm/mach-pxa/pm.c
View file @
e7c306e5
...
...
@@ -45,7 +45,7 @@ extern void pxa_cpu_resume(void);
*/
enum
{
SLEEP_SAVE_START
=
0
,
SLEEP_SAVE_O
SCR
,
SLEEP_SAVE_O
IER
,
SLEEP_SAVE_OIER
,
SLEEP_SAVE_OSMR0
,
SLEEP_SAVE_OSMR1
,
SLEEP_SAVE_OSMR2
,
SLEEP_SAVE_OSMR3
,
SLEEP_SAVE_GPLR0
,
SLEEP_SAVE_GPLR1
,
SLEEP_SAVE_GPLR2
,
...
...
@@ -78,7 +78,6 @@ static int pxa_pm_enter(u32 state)
delta
=
xtime
.
tv_sec
-
RCNR
;
/* save vital registers */
SAVE
(
OSCR
);
SAVE
(
OSMR0
);
SAVE
(
OSMR1
);
SAVE
(
OSMR2
);
...
...
@@ -149,9 +148,11 @@ static int pxa_pm_enter(u32 state)
RESTORE
(
OSMR1
);
RESTORE
(
OSMR2
);
RESTORE
(
OSMR3
);
RESTORE
(
OSCR
);
RESTORE
(
OIER
);
/* OSMR0 is the system timer: make sure OSCR is sufficiently behind */
OSCR
=
OSMR0
-
LATCH
;
RESTORE
(
CKEN
);
ICLR
=
0
;
...
...
arch/arm/mach-sa1100/pm.c
View file @
e7c306e5
...
...
@@ -44,7 +44,7 @@ extern void sa1100_cpu_resume(void);
*/
enum
{
SLEEP_SAVE_SP
=
0
,
SLEEP_SAVE_O
SCR
,
SLEEP_SAVE_O
IER
,
SLEEP_SAVE_OIER
,
SLEEP_SAVE_OSMR0
,
SLEEP_SAVE_OSMR1
,
SLEEP_SAVE_OSMR2
,
SLEEP_SAVE_OSMR3
,
SLEEP_SAVE_GPDR
,
SLEEP_SAVE_GAFR
,
...
...
@@ -69,7 +69,6 @@ static int sa11x0_pm_enter(u32 state)
gpio
=
GPLR
;
/* save vital registers */
SAVE
(
OSCR
);
SAVE
(
OSMR0
);
SAVE
(
OSMR1
);
SAVE
(
OSMR2
);
...
...
@@ -131,9 +130,11 @@ static int sa11x0_pm_enter(u32 state)
RESTORE
(
OSMR1
);
RESTORE
(
OSMR2
);
RESTORE
(
OSMR3
);
RESTORE
(
OSCR
);
RESTORE
(
OIER
);
/* OSMR0 is the system timer: make sure OSCR is sufficiently behind */
OSCR
=
OSMR0
-
LATCH
;
/* restore current time */
xtime
.
tv_sec
=
RCNR
+
delta
;
...
...
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