summaryrefslogtreecommitdiffstats
path: root/kernel/pid.c
diff options
context:
space:
mode:
authorRik van Riel <riel@redhat.com>2011-02-01 09:51:46 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2011-03-17 13:08:28 -0300
commit77c100c83e84316ced2507c5799f79c2c80bc6b9 (patch)
tree93bbf41cc6a1a5f38730f241e104816a488a4715 /kernel/pid.c
parent4005996e428b0d3df10cd0eba389a14b9f5403e4 (diff)
downloadop-kernel-dev-77c100c83e84316ced2507c5799f79c2c80bc6b9.zip
op-kernel-dev-77c100c83e84316ced2507c5799f79c2c80bc6b9.tar.gz
export pid symbols needed for kvm_vcpu_on_spin
Export the symbols required for a race-free kvm_vcpu_on_spin. Signed-off-by: Rik van Riel <riel@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'kernel/pid.c')
-rw-r--r--kernel/pid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/pid.c b/kernel/pid.c
index 39b65b6..02f2212 100644
--- a/kernel/pid.c
+++ b/kernel/pid.c
@@ -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)
{
@@ -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)
{
OpenPOWER on IntegriCloud