Commit 64bcec12 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Adam Wujek

arch-wrpc: added wrc_ptp_run()

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent eb89f037
......@@ -241,6 +241,18 @@ int wrc_ptp_stop()
return 0;
}
int wrc_ptp_run(int start_stop_query)
{
switch(start_stop_query) {
case 0:
return wrc_ptp_stop();
case 1:
return wrc_ptp_start();
default:
return ptp_enabled;
}
}
/* this returns whether or not the function did any work */
int wrc_ptp_update()
{
......
......@@ -28,6 +28,7 @@ void wrc_ptp_set_sync_mech(int mech);
int wrc_ptp_get_sync_mech(void);
int wrc_ptp_start(void);
int wrc_ptp_stop(void);
int wrc_ptp_run(int start_stop_qry);
int wrc_ptp_update(void);
/* End of wrc-ptp.h */
......
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