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
b9119bf1
Commit
b9119bf1
authored
Sep 21, 2002
by
Paul Mackerras
Committed by
Paul Mackerras
Sep 21, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Simplify the code in arch/ppc/kernel/ppc_htab.c a bit
(no change in function).
parent
19d3de67
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
arch/ppc/kernel/ppc_htab.c
arch/ppc/kernel/ppc_htab.c
+7
-12
No files found.
arch/ppc/kernel/ppc_htab.c
View file @
b9119bf1
...
...
@@ -117,7 +117,6 @@ static ssize_t ppc_htab_read(struct file * file, char * buf,
#ifdef CONFIG_PPC_STD_MMU
unsigned
int
kptes
=
0
,
uptes
=
0
;
PTE
*
ptr
;
struct
task_struct
*
p
;
#endif
/* CONFIG_PPC_STD_MMU */
char
buffer
[
512
];
...
...
@@ -150,22 +149,18 @@ static ssize_t ppc_htab_read(struct file * file, char * buf,
goto
return_string
;
}
for
(
ptr
=
Hash
;
ptr
<
Hash_end
;
ptr
++
)
{
unsigned
int
ctx
,
mctx
,
vsid
;
for
(
ptr
=
Hash
;
ptr
<
Hash_end
;
ptr
++
)
{
unsigned
int
mctx
,
vsid
;
if
(
!
ptr
->
v
)
continue
;
/* make sure someone is using this context/vsid */
/* first undo the esid skew */
/* undo the esid skew */
vsid
=
ptr
->
vsid
;
mctx
=
((
vsid
-
(
vsid
&
0xf
)
*
0x111
)
>>
4
)
&
0xfffff
;
if
(
mctx
==
0
)
{
if
(
mctx
==
0
)
kptes
++
;
continue
;
}
/* now undo the context skew; 801921 * 897 == 1 mod 2^20 */
ctx
=
(
mctx
*
801921
)
&
0xfffff
;
else
uptes
++
;
}
n
+=
sprintf
(
buffer
+
n
,
...
...
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