You mean that smp_processor_id() returns 0 and 4?
I assumed smp_processor_id() < smp_num_cpus: SMP hackers, is this
false?
smp_processor_id() is the hardware cpu number, it can be anything.
Such numbers are not guarenteed to be contiguous/ordered/etc.
If so, I have to find a new upper bound for smp_processor_id() for
SMP, or rewrite much of ip_fw.c...
Why? Just do what the scheduler does, by using asking
cpu_number_map[smp_processor_id()], that returns the kind of number
you believed smp_processor_id() to be. (grep for "idle_task" in
kernel/sched.c)
Later,
David S. Miller
davem@dm.cobaltmicro.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/