diff options
author | Doug Gilbert <dgilbert@us.ibm.com> | 2011-09-12 12:47:53 -0500 |
---|---|---|
committer | Douglas R. Gilbert <dgilbert@us.ibm.com> | 2011-09-19 16:05:34 -0500 |
commit | de8a529d349aebb344979609055f123c196ccfe3 (patch) | |
tree | b91665407f69730aaba8da794afc47240997dd47 /src/include/kernel/cpumgr.H | |
parent | b754f8b47e343f449e5f05f67b948513363abd12 (diff) | |
download | talos-hostboot-de8a529d349aebb344979609055f123c196ccfe3.tar.gz talos-hostboot-de8a529d349aebb344979609055f123c196ccfe3.zip |
Mechanism to detect low memory and cast out older page
Change-Id: Icce8e01f3d1cd2942f2b9ff802993da0441535ee
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/344
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Diffstat (limited to 'src/include/kernel/cpumgr.H')
-rw-r--r-- | src/include/kernel/cpumgr.H | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/kernel/cpumgr.H b/src/include/kernel/cpumgr.H index 31759564b..b60c72bc6 100644 --- a/src/include/kernel/cpumgr.H +++ b/src/include/kernel/cpumgr.H @@ -29,7 +29,12 @@ class CpuManager { public: - enum { MAXCPUS = KERNEL_MAX_SUPPORTED_CPUS }; + enum + { + MAXCPUS = KERNEL_MAX_SUPPORTED_CPUS, + CPU_PERIODIC_CHECK_MEMORY = 64, + CPU_PERIODIC_FLUSH_PAGETABLE = 1024, + }; /** @fn getCurrentCPU * Returns a pointer to the current CPU structure by using the @@ -60,6 +65,13 @@ class CpuManager */ static uint32_t getShutdownStatus() { return cv_shutdown_status; } + /** @fn executePeriodics + * Perform periodic actions + * @param[in] cpu_t the CPU + */ + static void executePeriodics(cpu_t * i_cpu); + + protected: CpuManager(); ~CpuManager() {} |