Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105950
b: refs/heads/master
c: 69b895f
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Jul 25, 2008
1 parent b24b6a8 commit 9fb554e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3da1c84c00c7e5fa8348336bd8c342f9128b0f14
refs/heads/master: 69b895fd13d73aebf62b75502eb6513d43057ba3
14 changes: 1 addition & 13 deletions trunk/arch/s390/kernel/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <linux/device.h>
#include <linux/bootmem.h>
#include <linux/sched.h>
#include <linux/kthread.h>
#include <linux/workqueue.h>
#include <linux/cpu.h>
#include <linux/smp.h>
Expand Down Expand Up @@ -230,20 +229,9 @@ void arch_update_cpu_topology(void)
}
}

static int topology_kthread(void *data)
{
arch_reinit_sched_domains();
return 0;
}

static void topology_work_fn(struct work_struct *work)
{
/* We can't call arch_reinit_sched_domains() from a multi-threaded
* workqueue context since it may deadlock in case of cpu hotplug.
* So we have to create a kernel thread in order to call
* arch_reinit_sched_domains().
*/
kthread_run(topology_kthread, NULL, "topology_update");
arch_reinit_sched_domains();
}

void topology_schedule_update(void)
Expand Down

0 comments on commit 9fb554e

Please sign in to comment.