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
7b28bc93
Commit
7b28bc93
authored
Dec 01, 2004
by
Len Brown
Committed by
Len Brown
Dec 01, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cset exclude: len.brown@intel.com[lenb]|ChangeSet|20041109085620|42985
parent
99e7a1d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
17 deletions
+5
-17
arch/i386/kernel/apic.c
arch/i386/kernel/apic.c
+5
-17
No files found.
arch/i386/kernel/apic.c
View file @
7b28bc93
...
@@ -514,23 +514,9 @@ static struct {
...
@@ -514,23 +514,9 @@ static struct {
unsigned
int
apic_thmr
;
unsigned
int
apic_thmr
;
}
apic_pm_state
;
}
apic_pm_state
;
static
int
lapic_shutdown
(
struct
sys_device
*
dev
)
{
unsigned
long
flags
;
if
(
!
apic_pm_state
.
active
)
return
0
;
local_irq_save
(
flags
);
disable_local_APIC
();
local_irq_restore
(
flags
);
return
0
;
}
static
int
lapic_suspend
(
struct
sys_device
*
dev
,
u32
state
)
static
int
lapic_suspend
(
struct
sys_device
*
dev
,
u32
state
)
{
{
unsigned
long
flags
;
if
(
!
apic_pm_state
.
active
)
if
(
!
apic_pm_state
.
active
)
return
0
;
return
0
;
...
@@ -549,7 +535,10 @@ static int lapic_suspend(struct sys_device *dev, u32 state)
...
@@ -549,7 +535,10 @@ static int lapic_suspend(struct sys_device *dev, u32 state)
apic_pm_state
.
apic_tdcr
=
apic_read
(
APIC_TDCR
);
apic_pm_state
.
apic_tdcr
=
apic_read
(
APIC_TDCR
);
apic_pm_state
.
apic_thmr
=
apic_read
(
APIC_LVTTHMR
);
apic_pm_state
.
apic_thmr
=
apic_read
(
APIC_LVTTHMR
);
return
lapic_shutdown
(
dev
);
local_irq_save
(
flags
);
disable_local_APIC
();
local_irq_restore
(
flags
);
return
0
;
}
}
static
int
lapic_resume
(
struct
sys_device
*
dev
)
static
int
lapic_resume
(
struct
sys_device
*
dev
)
...
@@ -598,7 +587,6 @@ static int lapic_resume(struct sys_device *dev)
...
@@ -598,7 +587,6 @@ static int lapic_resume(struct sys_device *dev)
static
struct
sysdev_class
lapic_sysclass
=
{
static
struct
sysdev_class
lapic_sysclass
=
{
set_kset_name
(
"lapic"
),
set_kset_name
(
"lapic"
),
.
shutdown
=
lapic_shutdown
,
.
resume
=
lapic_resume
,
.
resume
=
lapic_resume
,
.
suspend
=
lapic_suspend
,
.
suspend
=
lapic_suspend
,
};
};
...
...
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