]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Hexagon: Add init_task and process functions
authorRichard Kuo <rkuo@codeaurora.org>
Tue, 13 Sep 2011 00:37:59 +0000 (10:37 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Sep 2011 00:37:59 +0000 (10:37 +1000)
commit34fb0f5d17fa19801bfa8427b38a0ba62c551f96
tree0ba0b2492786184aa195bd977ab78e8250bb46d7
parent06a19d57bb2e1ac48ad92969eac5e63397a81856
Hexagon: Add init_task and process functions

Fixed potential race-to-sleep condition in cpu_idle() and calling schedule
with irq's disabled.  I still have to have that extra enable/disbale in the
while() loop else the interrupt never gets serviced, and thus need_resched()
will always be false.

If called with interrupts disabled, our __vmwait() actually just returns
without servicing it.

Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
arch/hexagon/kernel/init_task.c [new file with mode: 0644]
arch/hexagon/kernel/process.c [new file with mode: 0644]