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
39c662f6
Commit
39c662f6
authored
Jul 25, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: Convert tlbstate_lock to raw_spinlock
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
b7e56edb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
arch/x86/mm/tlb.c
arch/x86/mm/tlb.c
+4
-4
No files found.
arch/x86/mm/tlb.c
View file @
39c662f6
...
...
@@ -41,7 +41,7 @@ union smp_flush_state {
struct
{
struct
mm_struct
*
flush_mm
;
unsigned
long
flush_va
;
spinlock_t
tlbstate_lock
;
raw_
spinlock_t
tlbstate_lock
;
DECLARE_BITMAP
(
flush_cpumask
,
NR_CPUS
);
};
char
pad
[
INTERNODE_CACHE_BYTES
];
...
...
@@ -181,7 +181,7 @@ static void flush_tlb_others_ipi(const struct cpumask *cpumask,
* num_online_cpus() <= NUM_INVALIDATE_TLB_VECTORS, but it is
* probably not worth checking this for a cache-hot lock.
*/
spin_lock
(
&
f
->
tlbstate_lock
);
raw_
spin_lock
(
&
f
->
tlbstate_lock
);
f
->
flush_mm
=
mm
;
f
->
flush_va
=
va
;
...
...
@@ -199,7 +199,7 @@ static void flush_tlb_others_ipi(const struct cpumask *cpumask,
f
->
flush_mm
=
NULL
;
f
->
flush_va
=
0
;
spin_unlock
(
&
f
->
tlbstate_lock
);
raw_
spin_unlock
(
&
f
->
tlbstate_lock
);
}
void
native_flush_tlb_others
(
const
struct
cpumask
*
cpumask
,
...
...
@@ -223,7 +223,7 @@ static int __cpuinit init_smp_flush(void)
int
i
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
flush_state
);
i
++
)
spin_lock_init
(
&
flush_state
[
i
].
tlbstate_lock
);
raw_
spin_lock_init
(
&
flush_state
[
i
].
tlbstate_lock
);
return
0
;
}
...
...
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