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
913d44b6
Commit
913d44b6
authored
Aug 20, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[power] Make sure MTRR uses right methods in sysdev_driver.
parent
9234878a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
arch/i386/kernel/cpu/mtrr/main.c
arch/i386/kernel/cpu/mtrr/main.c
+3
-3
No files found.
arch/i386/kernel/cpu/mtrr/main.c
View file @
913d44b6
...
...
@@ -574,7 +574,7 @@ static int mtrr_save(struct sys_device * sysdev, u32 state)
int
i
;
int
size
=
num_var_ranges
*
sizeof
(
struct
mtrr_value
);
mtrr_state
=
kmalloc
(
size
,
GFP_
KERNEL
);
mtrr_state
=
kmalloc
(
size
,
GFP_
ATOMIC
);
if
(
mtrr_state
)
memset
(
mtrr_state
,
0
,
size
);
else
...
...
@@ -607,8 +607,8 @@ static int mtrr_restore(struct sys_device * sysdev)
static
struct
sysdev_driver
mtrr_sysdev_driver
=
{
.
s
ave
=
mtrr_save
,
.
res
tore
=
mtrr_restore
,
.
s
uspend
=
mtrr_save
,
.
res
ume
=
mtrr_restore
,
};
...
...
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