Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95333
b: refs/heads/master
c: fd781fa
h: refs/heads/master
i:
  95331: d0b7fdd
v: v3
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Apr 30, 2008
1 parent 15a635e commit adc1584
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 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: d00aa4e7d0129983fc4389c85e15a066eb4e69a9
refs/heads/master: fd781fa25c9e9c6fd1599df060b05e7c4ad724e5
14 changes: 13 additions & 1 deletion trunk/arch/s390/kernel/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#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 @@ -229,9 +230,20 @@ void arch_update_cpu_topology(void)
}
}

static void topology_work_fn(struct work_struct *work)
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");
}

void topology_schedule_update(void)
Expand Down

0 comments on commit adc1584

Please sign in to comment.