Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
47
Issues
47
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
df9c1ace
Commit
df9c1ace
authored
Jul 22, 2015
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr-servo: use unix_time->set only if ARCH_IS_WRS
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
6ecdf970
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
wr-servo.c
proto-ext-whiterabbit/wr-servo.c
+7
-1
No files found.
proto-ext-whiterabbit/wr-servo.c
View file @
df9c1ace
...
...
@@ -2,6 +2,12 @@
#include "wr-api.h"
#include <libwr/shmem.h>
#ifdef CONFIG_ARCH_WRS
#define ARCH_IS_WRS 1
#else
#define ARCH_IS_WRS 0
#endif
#define WR_SERVO_OFFSET_STABILITY_THRESHOLD 60
/* psec */
#define FIX_ALPHA_FRACBITS 40
...
...
@@ -356,7 +362,7 @@ int wr_servo_update(struct pp_instance *ppi)
s
->
state
=
WR_WAIT_OFFSET_STABLE
;
s
->
delta_ms_prev
=
s
->
delta_ms
;
{
if
(
ARCH_IS_WRS
)
{
/*
* Now, let's fix system time. We pass here
* once only, so that's the best place to do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment