kernel/scheduler: Remove "inline" attribute from PeekThread.

This will allow it to be invoked outside scheduler_cpu.cpp,
and GCC should automatically inline this function within that file
anyway.

No functional change intended.
This commit is contained in:
Augustin Cavalier 2022-08-04 17:04:40 -04:00
parent 0f635f9bbc
commit bad677be5b
2 changed files with 4 additions and 4 deletions

View File

@ -152,7 +152,7 @@ CPUEntry::Remove(ThreadData* thread)
}
inline ThreadData*
ThreadData*
CoreEntry::PeekThread() const
{
SCHEDULER_ENTER_FUNCTION();
@ -160,7 +160,7 @@ CoreEntry::PeekThread() const
}
inline ThreadData*
ThreadData*
CPUEntry::PeekThread() const
{
SCHEDULER_ENTER_FUNCTION();

View File

@ -68,7 +68,7 @@ public:
void PushBack(ThreadData* thread,
int32 priority);
void Remove(ThreadData* thread);
inline ThreadData* PeekThread() const;
ThreadData* PeekThread() const;
ThreadData* PeekIdleThread() const;
void UpdatePriority(int32 priority);
@ -147,7 +147,7 @@ public:
void PushBack(ThreadData* thread,
int32 priority);
void Remove(ThreadData* thread);
inline ThreadData* PeekThread() const;
ThreadData* PeekThread() const;
inline bigtime_t GetActiveTime() const;
inline void IncreaseActiveTime(