diff options
author | Rik van Riel <riel@redhat.com> | 2011-02-01 09:51:46 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2011-03-17 12:08:28 -0400 |
commit | 77c100c83e84316ced2507c5799f79c2c80bc6b9 (patch) | |
tree | 93bbf41cc6a1a5f38730f241e104816a488a4715 | |
parent | 4005996e428b0d3df10cd0eba389a14b9f5403e4 (diff) |
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>
-rw-r--r-- | kernel/fork.c | 1 | ||||
-rw-r--r-- | kernel/pid.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 25e429152ddc..05b92c457010 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -193,6 +193,7 @@ void __put_task_struct(struct task_struct *tsk) | |||
193 | if (!profile_handoff_task(tsk)) | 193 | if (!profile_handoff_task(tsk)) |
194 | free_task(tsk); | 194 | free_task(tsk); |
195 | } | 195 | } |
196 | EXPORT_SYMBOL_GPL(__put_task_struct); | ||
196 | 197 | ||
197 | /* | 198 | /* |
198 | * macro override instead of weak attribute alias, to workaround | 199 | * macro override instead of weak attribute alias, to workaround |
diff --git a/kernel/pid.c b/kernel/pid.c index 39b65b69584f..02f221274265 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) | |||
435 | rcu_read_unlock(); | 435 | rcu_read_unlock(); |
436 | return pid; | 436 | return pid; |
437 | } | 437 | } |
438 | EXPORT_SYMBOL_GPL(get_task_pid); | ||
438 | 439 | ||
439 | struct task_struct *get_pid_task(struct pid *pid, enum pid_type type) | 440 | struct task_struct *get_pid_task(struct pid *pid, enum pid_type type) |
440 | { | 441 | { |
@@ -446,6 +447,7 @@ struct task_struct *get_pid_task(struct pid *pid, enum pid_type type) | |||
446 | rcu_read_unlock(); | 447 | rcu_read_unlock(); |
447 | return result; | 448 | return result; |
448 | } | 449 | } |
450 | EXPORT_SYMBOL_GPL(get_pid_task); | ||
449 | 451 | ||
450 | struct pid *find_get_pid(pid_t nr) | 452 | struct pid *find_get_pid(pid_t nr) |
451 | { | 453 | { |