Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.14-pre8 /kernel/softirq.c

Filename:/kernel/softirq.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.4.14-pre7  2.4.10  2.4.10-pre15  2.4.10-pre14  2.4.10-pre13  2.4.10-pre12 
(Following) 2.4.14  2.4.19-pre1-ac3  2.4.19-pre2-ac2  2.4.19-pre2-ac3  2.4.19-pre2-ac4  2.4.19-pre3-ac1 

Location
[  2.4.14-pre8
  [  kernel
     o  softirq.c

Patch

diff -u --recursive --new-file v2.4.13/linux/kernel/softirq.c linux/kernel/softirq.c
--- v2.4.13/linux/kernel/softirq.c   Sun Sep 23 11:41:01 2001
+++ linux/kernel/softirq.c   Wed Oct 31 10:26:02 2001
@@ -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 {


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.