Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
FMC DEL 1ns 4cha - Software
Commits
786369ee
Commit
786369ee
authored
Oct 22, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: fix a warning like spec-sw does it
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
40a3d8a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
fine-delay.h
kernel/fine-delay.h
+11
-0
time.c
kernel/time.c
+1
-4
No files found.
kernel/fine-delay.h
View file @
786369ee
...
...
@@ -113,6 +113,17 @@ static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder)
}
#endif
/* This is somehow generic, but I find no better place at this time */
#ifndef SET_HI32
# if BITS_PER_LONG > 32
# define SET_HI32(var, value) ((var) |= (value) << 32)
# define GET_HI32(var) ((var) >> 32)
# else
# define SET_HI32(var, value) ((var) |= 0)
# define GET_HI32(var) 0
# endif
#endif
struct
fd_calib
{
int64_t
frr_poly
[
3
];
/* SY89295 delay/temp poly coeffs */
uint32_t
magic
;
/* magic ID: 0xf19ede1a */
...
...
kernel/time.c
View file @
786369ee
...
...
@@ -38,10 +38,7 @@ int fd_time_set(struct spec_fd *fd, struct fd_time *t, struct timespec *ts)
ts
=
&
localts
;
getnstimeofday
(
ts
);
}
if
(
BITS_PER_LONG
>
32
)
fd_writel
(
fd
,
ts
->
tv_sec
>>
32
,
FD_REG_TM_SECH
);
else
fd_writel
(
fd
,
0
,
FD_REG_TM_SECH
);
fd_writel
(
fd
,
GET_HI32
(
ts
->
tv_sec
),
FD_REG_TM_SECH
);
fd_writel
(
fd
,
(
int32_t
)
ts
->
tv_sec
,
FD_REG_TM_SECL
);
fd_writel
(
fd
,
ts
->
tv_nsec
>>
3
,
FD_REG_TM_CYCLES
);
}
...
...
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