BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
06e44802
Commit
06e44802
authored
Nov 19, 2018
by
Zahid Chowdhury
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in time_check, task state was not being set before calling sched_timeout
parent
b9812146
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
rtc_sync.c
linux_kernel_modules/rtc_sync/rtc_sync.c
+9
-1
No files found.
linux_kernel_modules/rtc_sync/rtc_sync.c
View file @
06e44802
...
...
@@ -121,8 +121,16 @@ static int time_check(void *data)
long
long
delta_ns
;
ktime_get_real_ts
(
&
before
);
while
(
timeout
>
0
)
while
(
timeout
>
0
)
{
/* schedule_timeout requires the task state to be set
* to either TASK_INTERRUPTIBLE or TASK_UNINTERRUPTIBLE,
* otherwise the kernel will not put the task on the sleep list.
* If you have any critical processing you need done in rtc
* then just change this to TASK_UNINTERRUPTIBLE - i.e no signals.
*/
set_current_state
(
TASK_INTERRUPTIBLE
);
timeout
=
schedule_timeout
(
timeout
);
}
ktime_get_real_ts
(
&
after
);
delta_ns
=
timespec_to_ns
(
&
after
)
-
timespec_to_ns
(
&
before
);
...
...
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