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
df0fb256
Commit
df0fb256
authored
Nov 21, 2007
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Fix up proc ASIDs for CPU-local ASID cache accessors.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
60b2249d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
arch/sh/kernel/process_64.c
arch/sh/kernel/process_64.c
+8
-10
No files found.
arch/sh/kernel/process_64.c
View file @
df0fb256
...
...
@@ -27,6 +27,7 @@
#include <linux/io.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
#include <asm/mmu_context.h>
struct
task_struct
*
last_task_used_math
=
NULL
;
...
...
@@ -674,17 +675,14 @@ asids_proc_info(char *buf, char **start, off_t fpos, int length, int *eof, void
read_lock
(
&
tasklist_lock
);
for_each_process
(
p
)
{
int
pid
=
p
->
pid
;
struct
mm_struct
*
mm
;
if
(
!
pid
)
continue
;
mm
=
p
->
mm
;
if
(
mm
)
{
unsigned
long
asid
,
context
;
context
=
mm
->
context
;
asid
=
(
context
&
0xff
);
len
+=
sprintf
(
buf
+
len
,
"%5d : %02lx
\n
"
,
pid
,
asid
);
}
else
{
if
(
!
pid
)
continue
;
if
(
p
->
mm
)
len
+=
sprintf
(
buf
+
len
,
"%5d : %02lx
\n
"
,
pid
,
asid_cache
(
smp_processor_id
()));
else
len
+=
sprintf
(
buf
+
len
,
"%5d : (none)
\n
"
,
pid
);
}
}
read_unlock
(
&
tasklist_lock
);
*
eof
=
1
;
...
...
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