Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
40d6753e
Commit
40d6753e
authored
Jul 25, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: Convert set_atomicity_lock to raw_spinlock
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
942fa3b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
arch/x86/kernel/cpu/mtrr/generic.c
arch/x86/kernel/cpu/mtrr/generic.c
+3
-3
No files found.
arch/x86/kernel/cpu/mtrr/generic.c
View file @
40d6753e
...
@@ -570,7 +570,7 @@ static unsigned long set_mtrr_state(void)
...
@@ -570,7 +570,7 @@ static unsigned long set_mtrr_state(void)
static
unsigned
long
cr4
;
static
unsigned
long
cr4
;
static
DEFINE_SPINLOCK
(
set_atomicity_lock
);
static
DEFINE_
RAW_
SPINLOCK
(
set_atomicity_lock
);
/*
/*
* Since we are disabling the cache don't allow any interrupts,
* Since we are disabling the cache don't allow any interrupts,
...
@@ -590,7 +590,7 @@ static void prepare_set(void) __acquires(set_atomicity_lock)
...
@@ -590,7 +590,7 @@ static void prepare_set(void) __acquires(set_atomicity_lock)
* changes to the way the kernel boots
* changes to the way the kernel boots
*/
*/
spin_lock
(
&
set_atomicity_lock
);
raw_
spin_lock
(
&
set_atomicity_lock
);
/* Enter the no-fill (CD=1, NW=0) cache mode and flush caches. */
/* Enter the no-fill (CD=1, NW=0) cache mode and flush caches. */
cr0
=
read_cr0
()
|
X86_CR0_CD
;
cr0
=
read_cr0
()
|
X86_CR0_CD
;
...
@@ -627,7 +627,7 @@ static void post_set(void) __releases(set_atomicity_lock)
...
@@ -627,7 +627,7 @@ static void post_set(void) __releases(set_atomicity_lock)
/* Restore value of CR4 */
/* Restore value of CR4 */
if
(
cpu_has_pge
)
if
(
cpu_has_pge
)
write_cr4
(
cr4
);
write_cr4
(
cr4
);
spin_unlock
(
&
set_atomicity_lock
);
raw_
spin_unlock
(
&
set_atomicity_lock
);
}
}
static
void
generic_set_all
(
void
)
static
void
generic_set_all
(
void
)
...
...
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