Commit 03c1d822 authored by Stéphane Eranian's avatar Stéphane Eranian Committed by David Mosberger

[PATCH] ia64: fix return type of sys_perfmonctl()

parent 236d11b0
...@@ -2517,7 +2517,7 @@ check_task_state(struct task_struct *task) ...@@ -2517,7 +2517,7 @@ check_task_state(struct task_struct *task)
return ret; return ret;
} }
asmlinkage int asmlinkage long
sys_perfmonctl (pid_t pid, int cmd, void *arg, int count, long arg5, long arg6, long arg7, sys_perfmonctl (pid_t pid, int cmd, void *arg, int count, long arg5, long arg6, long arg7,
long arg8, long stack) long arg8, long stack)
{ {
...@@ -3977,6 +3977,11 @@ pfm_inherit(struct task_struct *task, struct pt_regs *regs) ...@@ -3977,6 +3977,11 @@ pfm_inherit(struct task_struct *task, struct pt_regs *regs)
*/ */
nctx->ctx_saved_psr = pfm_get_psr(); 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 */ /* link with new task */
thread->pfm_context = nctx; thread->pfm_context = nctx;
...@@ -4430,7 +4435,7 @@ pfm_init_percpu(void) ...@@ -4430,7 +4435,7 @@ pfm_init_percpu(void)
#else /* !CONFIG_PERFMON */ #else /* !CONFIG_PERFMON */
asmlinkage int asmlinkage long
sys_perfmonctl (int pid, int cmd, void *req, int count, long arg5, long arg6, sys_perfmonctl (int pid, int cmd, void *req, int count, long arg5, long arg6,
long arg7, long arg8, long stack) long arg7, long arg8, long stack)
{ {
......
...@@ -161,7 +161,7 @@ typedef struct { ...@@ -161,7 +161,7 @@ typedef struct {
unsigned long reserved; /* unused */ unsigned long reserved; /* unused */
} perfmon_smpl_entry_t; } 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__ #ifdef __KERNEL__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment