Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canghaiwuhen
OpenXG-RAN
Commits
62849dd8
Commit
62849dd8
authored
Jan 31, 2020
by
masayuki.harada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix thread priority.
parent
7994daa0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
nfapi/oai_integration/nfapi_vnf.c
nfapi/oai_integration/nfapi_vnf.c
+1
-1
targets/RT/USER/rt_wrapper.c
targets/RT/USER/rt_wrapper.c
+2
-2
No files found.
nfapi/oai_integration/nfapi_vnf.c
View file @
62849dd8
...
@@ -987,7 +987,7 @@ void* vnf_p7_time_thread(void *ptr) {
...
@@ -987,7 +987,7 @@ void* vnf_p7_time_thread(void *ptr) {
void
set_thread_priority
(
int
priority
);
void
set_thread_priority
(
int
priority
);
void
*
vnf_p7_thread_start
(
void
*
ptr
)
{
void
*
vnf_p7_thread_start
(
void
*
ptr
)
{
set_thread_priority
(
79
);
set_thread_priority
(
sched_get_priority_max
(
SCHED_FIFO
)
-
1
);
vnf_p7_info
*
p7_vnf
=
(
vnf_p7_info
*
)
ptr
;
vnf_p7_info
*
p7_vnf
=
(
vnf_p7_info
*
)
ptr
;
p7_vnf
->
config
->
port
=
p7_vnf
->
local_port
;
p7_vnf
->
config
->
port
=
p7_vnf
->
local_port
;
p7_vnf
->
config
->
sync_indication
=
&
phy_sync_indication
;
p7_vnf
->
config
->
sync_indication
=
&
phy_sync_indication
;
...
...
targets/RT/USER/rt_wrapper.c
View file @
62849dd8
...
@@ -333,8 +333,8 @@ void thread_top_init(char *thread_name,
...
@@ -333,8 +333,8 @@ void thread_top_init(char *thread_name,
}
}
memset
(
&
sparam
,
0
,
sizeof
(
sparam
));
memset
(
&
sparam
,
0
,
sizeof
(
sparam
));
//
sparam.sched_priority = sched_get_priority_max(SCHED_FIFO);
sparam
.
sched_priority
=
sched_get_priority_max
(
SCHED_FIFO
);
sparam
.
sched_priority
=
30
;
//
sparam.sched_priority = 30;
policy
=
SCHED_FIFO
;
policy
=
SCHED_FIFO
;
s
=
pthread_setschedparam
(
pthread_self
(),
policy
,
&
sparam
);
s
=
pthread_setschedparam
(
pthread_self
(),
policy
,
&
sparam
);
...
...
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