diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/softirq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/softirq.c b/kernel/softirq.c index 571aa0e12b9e..dd5fa5daa969 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -361,7 +361,7 @@ void __run_task_queue(task_queue *list) static int ksoftirqd(void * __bind_cpu) { - int bind_cpu = *(int *) __bind_cpu; + int bind_cpu = (int) (long) __bind_cpu; int cpu = cpu_logical_map(bind_cpu); daemonize(); @@ -401,7 +401,7 @@ static __init int spawn_ksoftirqd(void) int cpu; for (cpu = 0; cpu < smp_num_cpus; cpu++) { - if (kernel_thread(ksoftirqd, (void *) &cpu, + if (kernel_thread(ksoftirqd, (void *) (long) cpu, CLONE_FS | CLONE_FILES | CLONE_SIGNAL) < 0) printk("spawn_ksoftirqd() failed for cpu %d\n", cpu); else { |
