From: benzi vizman <benziwa@netvision.net.il>
To: netdev@vger.kernel.org
Subject: schedule() does not work...
Date: Thu, 04 May 2006 17:59:57 +0300 [thread overview]
Message-ID: <479a1253997.445a411d@netvision.net.il> (raw)
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.
next reply other threads:[~2006-05-04 15:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-04 14:59 benzi vizman [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-05-04 15:08 schedule() does not work benzi vizman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=479a1253997.445a411d@netvision.net.il \
--to=benziwa@netvision.net.il \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).