Skip to content

Commit

Permalink
export pid symbols needed for kvm_vcpu_on_spin
Browse files Browse the repository at this point in the history
Export the symbols required for a race-free kvm_vcpu_on_spin.

Signed-off-by: Rik van Riel <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
  • Loading branch information
Rik van Riel authored and matosatti committed Mar 17, 2011
1 parent 4005996 commit 77c100c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ void __put_task_struct(struct task_struct *tsk)
if (!profile_handoff_task(tsk))
free_task(tsk);
}
EXPORT_SYMBOL_GPL(__put_task_struct);

/*
* macro override instead of weak attribute alias, to workaround
Expand Down
2 changes: 2 additions & 0 deletions kernel/pid.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ struct pid *get_task_pid(struct task_struct *task, enum pid_type type)
rcu_read_unlock();
return pid;
}
EXPORT_SYMBOL_GPL(get_task_pid);

struct task_struct *get_pid_task(struct pid *pid, enum pid_type type)
{
Expand All @@ -446,6 +447,7 @@ struct task_struct *get_pid_task(struct pid *pid, enum pid_type type)
rcu_read_unlock();
return result;
}
EXPORT_SYMBOL_GPL(get_pid_task);

struct pid *find_get_pid(pid_t nr)
{
Expand Down

0 comments on commit 77c100c

Please sign in to comment.