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
dede6289
Commit
dede6289
authored
Feb 13, 2003
by
James Simmons
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
6bb434a1
5eef51c3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
arch/i386/kernel/acpi/boot.c
arch/i386/kernel/acpi/boot.c
+4
-0
arch/i386/kernel/suspend.c
arch/i386/kernel/suspend.c
+8
-0
arch/i386/kernel/sysenter.c
arch/i386/kernel/sysenter.c
+1
-1
drivers/acpi/Kconfig
drivers/acpi/Kconfig
+2
-0
No files found.
arch/i386/kernel/acpi/boot.c
View file @
dede6289
...
...
@@ -26,9 +26,13 @@
#include <linux/init.h>
#include <linux/acpi.h>
#include <asm/pgalloc.h>
#include <asm/apic.h>
#include <asm/mpspec.h>
#if defined (CONFIG_X86_LOCAL_APIC)
#include <mach_apic.h>
#include <mach_mpparse.h>
#endif
#define PREFIX "ACPI: "
...
...
arch/i386/kernel/suspend.c
View file @
dede6289
...
...
@@ -32,6 +32,8 @@ unsigned long saved_context_eax, saved_context_ebx, saved_context_ecx, saved_con
unsigned
long
saved_context_esp
,
saved_context_ebp
,
saved_context_esi
,
saved_context_edi
;
unsigned
long
saved_context_eflags
;
extern
void
enable_sep_cpu
(
void
*
);
void
save_processor_state
(
void
)
{
kernel_fpu_begin
();
...
...
@@ -96,6 +98,12 @@ void restore_processor_state(void)
asm
volatile
(
"lidt %0"
::
"m"
(
saved_context
.
idt_limit
));
asm
volatile
(
"lldt %0"
::
"m"
(
saved_context
.
ldt
));
/*
* sysenter MSRs
*/
if
(
boot_cpu_has
(
X86_FEATURE_SEP
))
enable_sep_cpu
(
NULL
);
fix_processor_context
();
do_fpu_end
();
}
...
...
arch/i386/kernel/sysenter.c
View file @
dede6289
...
...
@@ -35,7 +35,7 @@ struct fake_sep_struct {
unsigned
char
stack
[
0
];
}
__attribute__
((
aligned
(
8192
)));
static
void
__init
enable_sep_cpu
(
void
*
info
)
void
enable_sep_cpu
(
void
*
info
)
{
int
cpu
=
get_cpu
();
struct
tss_struct
*
tss
=
init_tss
+
cpu
;
...
...
drivers/acpi/Kconfig
View file @
dede6289
...
...
@@ -76,7 +76,9 @@ config ACPI_SLEEP
power management development.
config ACPI_SLEEP_PROC_FS
bool
depends on ACPI_SLEEP && PROC_FS
default y
config ACPI_AC
tristate "AC Adapter"
...
...
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