userspace: rename _is_user_context -> k_is_user_context
This functions is being called across the tree, no reason why it should not be a public API. The current usage violates a few MISRA rules. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
25c87db860
commit
0ec3774bde
18 changed files with 26 additions and 26 deletions
|
@ -101,7 +101,7 @@ static inline void get_start_time_cyc(void)
|
|||
* TC_START() in their code. But the caller thread cannot be
|
||||
* in userspace.
|
||||
*/
|
||||
if (!_is_user_context()) {
|
||||
if (!k_is_user_context()) {
|
||||
tc_start_time = k_cycle_get_32();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -137,7 +137,7 @@ void assert_post_action(const char *file, unsigned int line)
|
|||
/* User threads aren't allowed to induce kernel panics; generate
|
||||
* an oops instead.
|
||||
*/
|
||||
if (_is_user_context()) {
|
||||
if (k_is_user_context()) {
|
||||
k_oops();
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue