schedule() does not work...
From: benzi vizman <hidden>
Date: 2006-05-04 15:08:15
From: benzi vizman <hidden>
Date: 2006-05-04 15:08:15
Hi,
I try to run the following code in kernel (which is similar to apm() function) but it does not seem to work...
if (smp_processor_id() != cpu) {
current->cpus_allowed = (1UL << cpu);
schedule();
if (smp_processor_id() != cpu) {
BUG();
}
}
Any idea why?
Benzi.