From 595cf06fad2068ed3e97caabbb92ebe71ffd97d9 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 4 Feb 2002 20:30:02 -0800 Subject: v2.4.13.6 -> v2.4.13.7 - me: reinstate "delete swap cache on low swap" code - David Miller: ksoftirqd startup race fix - Hugh Dickins: make tmpfs free swap cache entries proactively --- kernel/softirq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel') 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 { -- cgit v1.2.3