scheduler: Work around GCC2 limitations in function inlining

GCC2 won't inline a function if it is used before its definition.
This commit is contained in:
Pawel Dziepak
2014-01-06 01:22:53 +01:00
parent 9e99bf6085
commit cb66faef24
7 changed files with 341 additions and 293 deletions
+8 -1
View File
@@ -41,7 +41,7 @@ typedef void (*smp_call_func)(addr_t data1, int32 currentCPU, addr_t data2, addr
class CPUSet {
public:
CPUSet() { ClearAll(); }
inline CPUSet();
inline void ClearAll();
inline void SetAll();
@@ -92,6 +92,13 @@ int smp_intercpu_int_handler(int32 cpu);
#endif
inline
CPUSet::CPUSet()
{
memset(fBitmap, 0, sizeof(fBitmap));
}
inline void
CPUSet::ClearAll()
{