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
22d22de6
Commit
22d22de6
authored
Feb 21, 2003
by
Brian Gerst
Committed by
Linus Torvalds
Feb 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Trival patch to i386 enter_lazy_tlb()
Moves the #ifdef into the function to improve readability.
parent
adb35b9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
include/asm-i386/mmu_context.h
include/asm-i386/mmu_context.h
+2
-6
No files found.
include/asm-i386/mmu_context.h
View file @
22d22de6
...
@@ -13,18 +13,14 @@
...
@@ -13,18 +13,14 @@
int
init_new_context
(
struct
task_struct
*
tsk
,
struct
mm_struct
*
mm
);
int
init_new_context
(
struct
task_struct
*
tsk
,
struct
mm_struct
*
mm
);
void
destroy_context
(
struct
mm_struct
*
mm
);
void
destroy_context
(
struct
mm_struct
*
mm
);
#ifdef CONFIG_SMP
static
inline
void
enter_lazy_tlb
(
struct
mm_struct
*
mm
,
struct
task_struct
*
tsk
,
unsigned
cpu
)
static
inline
void
enter_lazy_tlb
(
struct
mm_struct
*
mm
,
struct
task_struct
*
tsk
,
unsigned
cpu
)
{
{
#ifdef CONFIG_SMP
if
(
cpu_tlbstate
[
cpu
].
state
==
TLBSTATE_OK
)
if
(
cpu_tlbstate
[
cpu
].
state
==
TLBSTATE_OK
)
cpu_tlbstate
[
cpu
].
state
=
TLBSTATE_LAZY
;
cpu_tlbstate
[
cpu
].
state
=
TLBSTATE_LAZY
;
}
#else
static
inline
void
enter_lazy_tlb
(
struct
mm_struct
*
mm
,
struct
task_struct
*
tsk
,
unsigned
cpu
)
{
}
#endif
#endif
}
static
inline
void
switch_mm
(
struct
mm_struct
*
prev
,
struct
mm_struct
*
next
,
struct
task_struct
*
tsk
,
unsigned
cpu
)
static
inline
void
switch_mm
(
struct
mm_struct
*
prev
,
struct
mm_struct
*
next
,
struct
task_struct
*
tsk
,
unsigned
cpu
)
{
{
...
...
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