Commit 908e88d6 authored by Alessandro Rubini's avatar Alessandro Rubini

arch-wrpc: the poll function returns 1 if it did something

This is needed for profiling in wrpc-sw.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 43635331
......@@ -225,6 +225,7 @@ int wrc_ptp_stop()
return 0;
}
/* this returns whether or not the function did any work */
int wrc_ptp_update()
{
int i;
......@@ -259,8 +260,8 @@ int wrc_ptp_update()
/* Nothing received, but timeout elapsed */
start_tics = timer_get_tics();
delay_ms = pp_state_machine(ppi, NULL, 0);
return 0;
return 1;
}
delay_ms = pp_state_machine(ppi, ppi->rx_ptp, i);
return 0;
return 1;
}
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