Commit f960df9e authored by Alessandro Rubini's avatar Alessandro Rubini

host: add a 'relax' task. to avoid burning the CPU

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent d9d20c8b
......@@ -128,3 +128,13 @@ void ep_init(uint8_t mac_addr[])
void pfilter_init_default(void)
{}
static int task_relax(void)
{
usleep(1000);
return 1; /* we did something */
}
DEFINE_WRC_TASK(relax) = {
.name = "relax",
.job = task_relax,
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment