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
e7ddc91e
Commit
e7ddc91e
authored
Jun 17, 2004
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Squish compiler-warning in perfmon.c when compiling for UP.
parent
521f6006
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
25 deletions
+26
-25
arch/ia64/kernel/perfmon.c
arch/ia64/kernel/perfmon.c
+26
-25
No files found.
arch/ia64/kernel/perfmon.c
View file @
e7ddc91e
...
@@ -4584,31 +4584,6 @@ pfm_context_unload(pfm_context_t *ctx, void *arg, int count, struct pt_regs *reg
...
@@ -4584,31 +4584,6 @@ pfm_context_unload(pfm_context_t *ctx, void *arg, int count, struct pt_regs *reg
return
0
;
return
0
;
}
}
static
void
pfm_force_cleanup
(
pfm_context_t
*
ctx
,
struct
pt_regs
*
regs
)
{
struct
task_struct
*
task
=
ctx
->
ctx_task
;
ia64_psr
(
regs
)
->
up
=
0
;
ia64_psr
(
regs
)
->
sp
=
1
;
if
(
GET_PMU_OWNER
()
==
task
)
{
DPRINT
((
"cleared ownership for [%d]
\n
"
,
ctx
->
ctx_task
->
pid
));
SET_PMU_OWNER
(
NULL
,
NULL
);
}
/*
* disconnect the task from the context and vice-versa
*/
PFM_SET_WORK_PENDING
(
task
,
0
);
task
->
thread
.
pfm_context
=
NULL
;
task
->
thread
.
flags
&=
~
IA64_THREAD_PM_VALID
;
DPRINT
((
"force cleanupf for [%d]
\n
"
,
task
->
pid
));
}
/*
/*
* called only from exit_thread(): task == current
* called only from exit_thread(): task == current
...
@@ -5793,6 +5768,32 @@ pfm_syst_wide_update_task(struct task_struct *task, unsigned long info, int is_c
...
@@ -5793,6 +5768,32 @@ pfm_syst_wide_update_task(struct task_struct *task, unsigned long info, int is_c
}
}
#ifdef CONFIG_SMP
#ifdef CONFIG_SMP
static
void
pfm_force_cleanup
(
pfm_context_t
*
ctx
,
struct
pt_regs
*
regs
)
{
struct
task_struct
*
task
=
ctx
->
ctx_task
;
ia64_psr
(
regs
)
->
up
=
0
;
ia64_psr
(
regs
)
->
sp
=
1
;
if
(
GET_PMU_OWNER
()
==
task
)
{
DPRINT
((
"cleared ownership for [%d]
\n
"
,
ctx
->
ctx_task
->
pid
));
SET_PMU_OWNER
(
NULL
,
NULL
);
}
/*
* disconnect the task from the context and vice-versa
*/
PFM_SET_WORK_PENDING
(
task
,
0
);
task
->
thread
.
pfm_context
=
NULL
;
task
->
thread
.
flags
&=
~
IA64_THREAD_PM_VALID
;
DPRINT
((
"force cleanup for [%d]
\n
"
,
task
->
pid
));
}
/*
/*
* in 2.6, interrupts are masked when we come here and the runqueue lock is held
* in 2.6, interrupts are masked when we come here and the runqueue lock is held
*/
*/
...
...
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