1
0
Fork 0
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:
Stefan Lankes 2016-08-26 07:09:52 +02:00
parent d544684c99
commit 0941b66f0c
2 changed files with 1 additions and 5 deletions

View file

@ -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

View file

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