diff options
author | Thomas Huth <thuth@redhat.com> | 2016-09-09 21:52:02 +0200 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2016-09-14 17:50:40 +1000 |
commit | 91d86c568ebb45f940ce75575ce4d08420638617 (patch) | |
tree | ee9e9206e8405e24323af3db08d32974821d5f65 /lib | |
parent | f4b44f501e220b15ad63873b885c9d150a77b52d (diff) | |
download | SLOF-91d86c568ebb45f940ce75575ce4d08420638617.zip SLOF-91d86c568ebb45f940ce75575ce4d08420638617.tar.gz SLOF-91d86c568ebb45f940ce75575ce4d08420638617.tar.bz2 |
paflof: Provide get_timer() and set_timer() helper functions
They are needed for libnet, too. This implementation uses
SLOF_GetTimer() instead of using the decrementer like it is
done in the net-snk functions.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libnet/time.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libnet/time.h b/lib/libnet/time.h new file mode 100644 index 0000000..fcd5cd5 --- /dev/null +++ b/lib/libnet/time.h @@ -0,0 +1,6 @@ + +extern void set_timer(int); +extern int get_timer(void); +extern int get_sec_ticks(void); + +#define TICKS_SEC get_sec_ticks() |