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
a6a4b52e
Commit
a6a4b52e
authored
Oct 29, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Use cpu_vm_mask to indicate whether the MM is mapped.
parent
eec2e667
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
include/asm-arm/mmu_context.h
include/asm-arm/mmu_context.h
+5
-6
No files found.
include/asm-arm/mmu_context.h
View file @
a6a4b52e
...
...
@@ -80,18 +80,17 @@ static inline void
switch_mm
(
struct
mm_struct
*
prev
,
struct
mm_struct
*
next
,
struct
task_struct
*
tsk
)
{
unsigned
int
cpu
=
smp_processor_id
();
if
(
prev
!=
next
)
{
cpu_set
(
cpu
,
next
->
cpu_vm_mask
);
check_context
(
next
);
cpu_switch_mm
(
next
->
pgd
,
next
);
cpu_clear
(
cpu
,
prev
->
cpu_vm_mask
);
}
}
#define deactivate_mm(tsk,mm) do { } while (0)
static
inline
void
activate_mm
(
struct
mm_struct
*
prev
,
struct
mm_struct
*
next
)
{
check_context
(
next
);
cpu_switch_mm
(
next
->
pgd
,
next
);
}
#define activate_mm(prev,next) switch_mm(prev, next, NULL)
#endif
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