Ensure we run pollers in cpu_wait_job()
Ensure we run pollers in cpu_wait_job()

In root causing a bug on AST BMC Alistair found that pollers weren't
being run for around 3800ms.

This was due to a wonderful accident that's probably about a year or more
old where:

In cpu_wait_job we have:
        unsigned long ticks = usecs_to_tb(5);
	...
	time_wait(ticks);

While in time_wait(), deciding on if to run pollers:
        unsigned long period = msecs_to_tb(5);
	...
	if (remaining >= period) {

Obviously, this means we never run pollers. Not ideal.

This patch ensures we run pollers every 5ms in cpu_wait_job() as well
as displaying how long we waited for a job if that wait was >1second.

Reported-by: Alistair Popple <e9adbcf81c8a36ccc628e09bc92d0e25e1c8e501@popple.id.au>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>

qemu/skiboot,qemu/skiboot,open-power/skiboot,legoater/skiboot,qemu/skiboot,qemu/skiboot,shenki/skiboot,mikey/skiboot,csmart/skiboot,csmart/skiboot,legoater/skiboot,csmart/skiboot,shenki/skiboot,shenki/skiboot,legoater/skiboot,open-power/skiboot,qemu/skiboot,legoater/skiboot,legoater/skiboot,open-power/skiboot,mikey/skiboot,stewart-ibm/skiboot,open-power/skiboot,open-power/skiboot,shenki/skiboot,shenki/skiboot,stewart-ibm/skiboot,stewart-ibm/skiboot,mikey/skiboot