sched/policy: move g_policy from data to rodata
Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
parent
d1c7e1816f
commit
39e873f269
2 changed files with 2 additions and 2 deletions
|
|
@ -155,7 +155,7 @@ struct proc_envinfo_s
|
|||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
static FAR const char *g_policy[4] =
|
||||
static FAR const char * const g_policy[4] =
|
||||
{
|
||||
"SCHED_FIFO", "SCHED_RR", "SCHED_SPORADIC"
|
||||
};
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@
|
|||
|
||||
static uintptr_t
|
||||
g_last_regs[XCPTCONTEXT_REGS] aligned_data(XCPTCONTEXT_ALIGN);
|
||||
static FAR const char *g_policy[4] =
|
||||
static FAR const char * const g_policy[4] =
|
||||
{
|
||||
"FIFO", "RR", "SPORADIC"
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue