base: add affinity support to pager construction

Propagating the affinity information is needed to allow for assigning
a pager thread that is local to the CPU of the to-be-created thread.

issue #814
This commit is contained in:
Alexander Boettcher
2013-07-09 15:58:06 +02:00
committed by Norman Feske
parent e171683b8c
commit 4ae1faf14d
21 changed files with 94 additions and 16 deletions

View File

@@ -136,6 +136,11 @@ namespace Genode {
*/
void affinity(unsigned cpu);
/**
* Get the executing CPU for this thread
*/
unsigned affinity();
/**
* Get thread name
*/

View File

@@ -29,7 +29,14 @@ using namespace Codezero;
void Platform_thread::affinity(unsigned int cpu_no)
{
PDBG("not yet implemented");
PDBG("'%s' not yet implemented", __PRETTY_FUNCTION__);
}
unsigned Platform_thread::affinity()
{
PDBG("'%s' not yet implemented", __PRETTY_FUNCTION__);
return 0;
}