Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - 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 TDC 1ns 5cha - Software
Commits
e3386be4
Commit
e3386be4
authored
Jan 28, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: improve readability
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
02a2d342
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ft-irq.c
kernel/ft-irq.c
+4
-2
No files found.
kernel/ft-irq.c
View file @
e3386be4
...
...
@@ -261,7 +261,7 @@ static void ft_readout_tasklet(unsigned long arg)
struct
fmc_device
*
fmc
=
ft
->
fmc
;
struct
zio_device
*
zdev
=
ft
->
zdev
;
uint32_t
rd_ptr
;
int
count
,
dacapo
,
i
;
int
count
,
dacapo
,
i
,
err
;
pr_info
(
"%s:%d
\n
"
,
__func__
,
__LINE__
);
ft
->
prev_wr_ptr
=
ft
->
cur_wr_ptr
;
...
...
@@ -277,6 +277,7 @@ static void ft_readout_tasklet(unsigned long arg)
/* The oldest is prev_wr_ptr */
rd_ptr
=
(
ft
->
prev_wr_ptr
>>
4
)
&
0x000ff
;
/* Get from the hardware all available time stamps */
for
(;
count
>
0
;
count
--
)
{
struct
ft_hw_timestamp
hwts
;
...
...
@@ -296,7 +297,8 @@ static void ft_readout_tasklet(unsigned long arg)
struct
zio_cset
*
cset
=
&
zdev
->
cset
[
i
-
1
];
/* there is an active block, try reading an
accumulated sample */
if
(
ft_read_sw_fifo
(
ft
,
i
,
cset
->
chan
)
==
0
)
{
err
=
ft_read_sw_fifo
(
ft
,
i
,
cset
->
chan
);
if
(
!
err
)
{
clear_bit
(
FT_FLAG_CH_INPUT_READY
,
&
st
->
flags
);
zio_trigger_data_done
(
cset
);
}
...
...
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