BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rpusbdisp
Project
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Forest Godfrey
rpusbdisp
Commits
454421d3
Commit
454421d3
authored
Oct 08, 2014
by
Shikai Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove sleep_on_ function usage to avoid build failure on latest kernel
parent
4d0bb48d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
common.h
drivers/linux-driver/src/inc/common.h
+1
-0
usbhandlers.c
drivers/linux-driver/src/usbhandlers.c
+6
-1
No files found.
drivers/linux-driver/src/inc/common.h
100644 → 100755
View file @
454421d3
...
...
@@ -33,6 +33,7 @@
#include <linux/mm.h>
#include <linux/vmalloc.h>
#include <linux/input.h>
#include <linux/wait.h>
#include "inc/types.h"
#include "inc/drvconf.h"
...
...
drivers/linux-driver/src/usbhandlers.c
View file @
454421d3
...
...
@@ -836,6 +836,7 @@ static void _on_release_disp_tickets_pool(struct rpusbdisp_dev * dev)
struct
rpusbdisp_disp_ticket
*
ticket
;
struct
list_head
*
node
;
int
tickets_count
=
dev
->
disp_tickets_pool
.
disp_urb_count
;
DEFINE_WAIT
(
wait
);
dev_info
(
&
dev
->
interface
->
dev
,
"waiting for all tickets to be finished...
\n
"
);
...
...
@@ -848,7 +849,11 @@ static void _on_release_disp_tickets_pool(struct rpusbdisp_dev * dev)
--
dev
->
disp_tickets_pool
.
availiable_count
;
}
else
{
spin_unlock_irqrestore
(
&
dev
->
disp_tickets_pool
.
oplock
,
irq_flags
);
sleep_on_timeout
(
&
dev
->
disp_tickets_pool
.
wait_queue
,
2
*
HZ
);
// sleep_on_timeout(&dev->disp_tickets_pool.wait_queue, 2*HZ);
prepare_to_wait
(
&
dev
->
disp_tickets_pool
.
wait_queue
,
&
wait
,
TASK_UNINTERRUPTIBLE
);
schedule_timeout
(
2
*
HZ
);
finish_wait
(
&
dev
->
disp_tickets_pool
.
wait_queue
,
&
wait
);
continue
;
}
node
=
dev
->
disp_tickets_pool
.
list
.
next
;
...
...
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