Fix Linux task preemption on Versatile board
authorDaniel Jacobowitz <drow@false.org>
Sun, 13 Sep 2009 13:54:41 +0000 (09:54 -0400)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 14 Sep 2009 09:16:50 +0000 (11:16 +0200)
commit042eb37a04c9bf0cc76d14038a8ed35e3de713e2
tree1580334ffcd321d7a06f20082b4598acf93fb325
parentfad8c772ef4acda9d35a4c626aa869330e3b3659
Fix Linux task preemption on Versatile board

Recent versions of the Linux kernel will not preempt CPU-intensive
tasks unless the clock used by sched_clock() works.  On -M versatilepb
that's the 24MHz timer in the system controller.  It's a very simple
timer, so implement it.

Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/arm_sysctl.c