mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
define get_next_core as static function
This commit is contained in:
parent
d544684c99
commit
0941b66f0c
2 changed files with 1 additions and 5 deletions
|
@ -190,10 +190,6 @@ int wakeup_task(tid_t);
|
|||
*/
|
||||
int block_current_task(void);
|
||||
|
||||
/** @brief Get next core_id for a new task
|
||||
*/
|
||||
uint32_t get_next_core_id(void);
|
||||
|
||||
/** @brief Block current task until timer expires
|
||||
*
|
||||
* @param deadline Clock tick, when the timer expires
|
||||
|
|
|
@ -310,7 +310,7 @@ void NORETURN do_abort(void) {
|
|||
do_exit(-1);
|
||||
}
|
||||
|
||||
uint32_t get_next_core_id(void)
|
||||
static uint32_t get_next_core_id(void)
|
||||
{
|
||||
uint32_t i;
|
||||
static uint32_t core_id = MAX_CORES;
|
||||
|
|
Loading…
Add table
Reference in a new issue