CPU affinity configuration fixes

- if no affinity was set for a new thread before calling
  Cpu_session::start(), the CPU session's affinity gets set for this
  thread
- documentation fix: <affinity_space> -> <affinity-space>

Fixes #873.
This commit is contained in:
Christian Prochaska
2013-08-28 18:51:30 +02:00
committed by Norman Feske
parent 2501cb189e
commit 3e8e55ec16
4 changed files with 22 additions and 3 deletions

View File

@ -114,7 +114,19 @@ namespace Genode {
}
const char *name() { return _name; }
void affinity(Affinity::Location) { }
/**
* Set the executing CPU for this thread
*
* SMP is currently not directly supported on Genode/Linux
* (but indirectly by the Linux kernel).
*/
void affinity(Affinity::Location) { }
/**
* Request the affinity of this thread
*/
Affinity::Location affinity() { return Affinity::Location(); }
/**
* Register process ID and thread ID of thread