Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
00b26f36
Commit
00b26f36
authored
Apr 09, 2016
by
Rohit Gupta
Browse files
minor fix for CPU Affinity support in lte-softmodem
parent
48885f1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
targets/RT/USER/lte-softmodem.c
View file @
00b26f36
...
...
@@ -1402,7 +1402,7 @@ static void* eNB_thread_rx( void* param )
/* Set affinity mask to include CPUs 1 to MAX_CPUS */
/* CPU 0 is reserved for UHD */
CPU_ZERO
(
&
cpuset
);
for
(
j
=
2
;
j
<
get_nprocs
();
j
++
)
for
(
j
=
1
;
j
<
get_nprocs
();
j
++
)
CPU_SET
(
j
,
&
cpuset
);
s
=
pthread_setaffinity_np
(
pthread_self
(),
sizeof
(
cpu_set_t
),
&
cpuset
);
...
...
@@ -3296,6 +3296,8 @@ int main( int argc, char **argv )
#endif
}
#ifndef LOWLATENCY
cpu_set_t
cpuset
;
int
s
;
char
cpu_affinity
[
1024
];
...
...
@@ -3329,6 +3331,7 @@ int main( int argc, char **argv )
}
LOG_I
(
HW
,
"CPU Affinity of main() function is... %s
\n
"
,
cpu_affinity
);
#endif
/* device host type is set*/
openair0
.
host_type
=
BBU_HOST
;
...
...
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