scheduler: Move mode specific logic to separate files

This commit is contained in:
Pawel Dziepak
2013-11-20 09:46:59 +01:00
parent e2ff9a2865
commit 9c2e74da04
8 changed files with 747 additions and 598 deletions
+1
View File
@@ -1,4 +1,5 @@
/*
* Copyright 2013, Paweł Dziepak, [email protected].
* Copyright 2008-2011, Ingo Weinhold, [email protected].
* Copyright 2005-2010, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License.
+4 -1
View File
@@ -6,12 +6,15 @@
#define _KERNEL_LOAD_TRACKING_H
#include <OS.h>
const int32 kMaxLoad = 1000;
const bigtime_t kLoadMeasureInterval = 50000;
const bigtime_t kIntervalInaccuracy = kLoadMeasureInterval / 4;
static int32
static inline int32
compute_load(bigtime_t& measureTime, bigtime_t& measureActiveTime, int32& load)
{
bigtime_t now = system_time();