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
03c1d822
Commit
03c1d822
authored
Jan 27, 2003
by
Stéphane Eranian
Committed by
David Mosberger
Jan 27, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ia64: fix return type of sys_perfmonctl()
parent
236d11b0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
arch/ia64/kernel/perfmon.c
arch/ia64/kernel/perfmon.c
+7
-2
include/asm-ia64/perfmon.h
include/asm-ia64/perfmon.h
+1
-1
No files found.
arch/ia64/kernel/perfmon.c
View file @
03c1d822
...
...
@@ -2517,7 +2517,7 @@ check_task_state(struct task_struct *task)
return
ret
;
}
asmlinkage
int
asmlinkage
long
sys_perfmonctl
(
pid_t
pid
,
int
cmd
,
void
*
arg
,
int
count
,
long
arg5
,
long
arg6
,
long
arg7
,
long
arg8
,
long
stack
)
{
...
...
@@ -3977,6 +3977,11 @@ pfm_inherit(struct task_struct *task, struct pt_regs *regs)
*/
nctx
->
ctx_saved_psr
=
pfm_get_psr
();
/*
* propagate kernel psr in new context (used for first ctxsw in
*/
nctx
->
ctx_saved_psr
=
pfm_get_psr
();
/* link with new task */
thread
->
pfm_context
=
nctx
;
...
...
@@ -4430,7 +4435,7 @@ pfm_init_percpu(void)
#else
/* !CONFIG_PERFMON */
asmlinkage
int
asmlinkage
long
sys_perfmonctl
(
int
pid
,
int
cmd
,
void
*
req
,
int
count
,
long
arg5
,
long
arg6
,
long
arg7
,
long
arg8
,
long
stack
)
{
...
...
include/asm-ia64/perfmon.h
View file @
03c1d822
...
...
@@ -161,7 +161,7 @@ typedef struct {
unsigned
long
reserved
;
/* unused */
}
perfmon_smpl_entry_t
;
extern
int
perfmonctl
(
pid_t
pid
,
int
cmd
,
void
*
arg
,
int
narg
);
extern
long
perfmonctl
(
pid_t
pid
,
int
cmd
,
void
*
arg
,
int
narg
);
#ifdef __KERNEL__
...
...
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