Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
FMC TDC 1ns 5cha
Commits
832102b5
Commit
832102b5
authored
Oct 10, 2012
by
Samuel Iglesias Gonsálvez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdc: fix bug in tdc->wr_pointer save
Signed-off-by:
Samuel Iglesias Gonsalvez
<
siglesias@igalia.com
>
parent
fac9eed2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
tdc-fmc.c
drivers/tdc-fmc.c
+2
-3
No files found.
drivers/tdc-fmc.c
View file @
832102b5
...
...
@@ -126,9 +126,8 @@ static void tdc_fmc_irq_work(struct work_struct *work)
mutex_unlock
(
&
fmc_dma_lock
);
goto
dma_out
;
}
mutex_unlock
(
&
fmc_dma_lock
);
tdc
->
wr_pointer
=
curr_wr_ptr
;
mutex_unlock
(
&
fmc_dma_lock
);
/* Process the data */
dacapo_flag
=
tdc_fmc_check_lost_events
(
curr_wr_ptr
,
prev_wr_ptr
,
&
count
);
...
...
@@ -148,7 +147,7 @@ static void tdc_fmc_irq_work(struct work_struct *work)
/* Copy the data and notify the readers (ZIO trigger) */
tdc
->
event
[
chan
].
data
=
*
tmp_data
;
rd_ptr
=
(
rd_ptr
+
1
)
%
TDC_EVENT_BUFFER_SIZE
;
/* Fire ZIO trigger to save the adquisitions in ZIO buffers */
zio_fire_trigger
(
tdc
->
zdev
->
cset
[
chan
].
ti
);
}
...
...
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