Commit 62849dd8 authored by masayuki.harada's avatar masayuki.harada

Fix thread priority.

parent 7994daa0
......@@ -987,7 +987,7 @@ void* vnf_p7_time_thread(void *ptr) {
void set_thread_priority(int priority);
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;
p7_vnf->config->port = p7_vnf->local_port;
p7_vnf->config->sync_indication = &phy_sync_indication;
......
......@@ -333,8 +333,8 @@ void thread_top_init(char *thread_name,
}
memset(&sparam, 0, sizeof(sparam));
// sparam.sched_priority = sched_get_priority_max(SCHED_FIFO);
sparam.sched_priority = 30;
sparam.sched_priority = sched_get_priority_max(SCHED_FIFO);
// sparam.sched_priority = 30;
policy = SCHED_FIFO ;
s = pthread_setschedparam(pthread_self(), policy, &sparam);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment