代码拉取完成,页面将自动刷新
同步操作将从 AliOS Things/rhino 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include "k_api.h"
kstat_t g_sys_stat;
uint8_t g_idle_task_spawned[RHINO_CONFIG_CPU_NUM];
runqueue_t g_ready_queue;
/* schedule lock counter */
uint8_t g_sched_lock[RHINO_CONFIG_CPU_NUM];
uint8_t g_intrpt_nested_level[RHINO_CONFIG_CPU_NUM];
/* highest pri task in ready queue */
ktask_t *g_preferred_ready_task[RHINO_CONFIG_CPU_NUM];
/* current active task */
ktask_t *g_active_task[RHINO_CONFIG_CPU_NUM];
/* global task ID */
uint32_t g_task_id;
/* idle task attribute */
ktask_t g_idle_task[RHINO_CONFIG_CPU_NUM];
idle_count_t g_idle_count[RHINO_CONFIG_CPU_NUM];
cpu_stack_t g_idle_task_stack[RHINO_CONFIG_CPU_NUM][RHINO_CONFIG_IDLE_TASK_STACK_SIZE];
per_cpu_t g_per_cpu[RHINO_CONFIG_CPU_NUM];
/* tick attribute */
tick_t g_tick_count;
klist_t g_tick_head;
#if (RHINO_CONFIG_KOBJ_LIST > 0)
kobj_list_t g_kobj_list;
#endif
#if (RHINO_CONFIG_TIMER > 0)
klist_t g_timer_head;
tick_t g_timer_count;
ktask_t g_timer_task;
cpu_stack_t g_timer_task_stack[RHINO_CONFIG_TIMER_TASK_STACK_SIZE];
kbuf_queue_t g_timer_queue;
k_timer_queue_cb timer_queue_cb[RHINO_CONFIG_TIMER_MSG_NUM];
#endif
#if (RHINO_CONFIG_SYS_STATS > 0)
hr_timer_t g_sched_disable_time_start;
hr_timer_t g_sched_disable_max_time;
hr_timer_t g_cur_sched_disable_max_time;
uint16_t g_intrpt_disable_times;
hr_timer_t g_intrpt_disable_time_start;
hr_timer_t g_intrpt_disable_max_time;
hr_timer_t g_cur_intrpt_disable_max_time;
ctx_switch_t g_sys_ctx_switch_times;
#endif
#if (RHINO_CONFIG_HW_COUNT > 0)
hr_timer_t g_sys_measure_waste;
#endif
#if (RHINO_CONFIG_CPU_USAGE_STATS > 0)
ktask_t g_cpu_usage_task;
cpu_stack_t g_cpu_task_stack[RHINO_CONFIG_CPU_USAGE_TASK_STACK];
idle_count_t g_idle_count_max;
uint32_t g_cpu_usage;
#endif
#if (RHINO_CONFIG_KOBJ_DYN_ALLOC > 0)
ksem_t g_res_sem;
klist_t g_res_list;
ktask_t g_dyn_task;
cpu_stack_t g_dyn_task_stack[RHINO_CONFIG_K_DYN_TASK_STACK];
#endif
#if (RHINO_CONFIG_WORKQUEUE > 0)
klist_t g_workqueue_list_head;
kmutex_t g_workqueue_mutex;
kworkqueue_t g_workqueue_default;
cpu_stack_t g_workqueue_stack[RHINO_CONFIG_WORKQUEUE_STACK_SIZE];
#endif
#if (RHINO_CONFIG_MM_TLF > 0)
k_mm_head *g_kmm_head;
#endif
#if (RHINO_CONFIG_CPU_NUM > 1)
kspinlock_t g_sys_lock;
klist_t g_task_del_head;
volatile uint64_t g_cpu_flag;
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。