patch-2.4.14 linux/kernel/softirq.c
Next file: linux/mm/Makefile
Previous file: linux/kernel/printk.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed Oct 31 10:26:02 2001
- Orig file:
v2.4.13/linux/kernel/softirq.c
- Orig date:
Sun Sep 23 11:41:01 2001
diff -u --recursive --new-file v2.4.13/linux/kernel/softirq.c linux/kernel/softirq.c
@@ -361,7 +361,7 @@
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 @@
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 {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)