sched/policy: move g_policy from data to rodata

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an 2024-09-02 13:02:48 +08:00 committed by Xiang Xiao
parent d1c7e1816f
commit 39e873f269
2 changed files with 2 additions and 2 deletions

View File

@ -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"
};

View File

@ -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"
};