]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Hexagon: Add init_task and process functions
authorRichard Kuo <rkuo@codeaurora.org>
Wed, 14 Sep 2011 00:50:29 +0000 (10:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Sep 2011 00:50:29 +0000 (10:50 +1000)
commitdad6005a34f80b565e354006fffefc4bf896ffed
tree564a990c98e67be0fa29d77ec22bbb1faa49e2c9
parentb226fe8979ea04faf1b48b4a9f40892ccd3815a5
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]