mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 23:53:55 +00:00
Extend Cpu_session with thread-affinity API
This patch introduces the functions 'affinity' and 'num_cpus' to the CPU session interface. The interface extension will allow the assignment of individual threads to CPUs. At this point, it is just a stub with no actual platform support.
This commit is contained in:
@ -114,9 +114,9 @@ namespace Genode {
|
||||
unsigned long pager_object_badge() const { return _tid; }
|
||||
|
||||
/**
|
||||
* Set the executing CPU for this thread.
|
||||
* Set the executing CPU for this thread
|
||||
*/
|
||||
void set_cpu(unsigned int cpu_no);
|
||||
void affinity(unsigned cpu);
|
||||
|
||||
/**
|
||||
* Get thread name
|
||||
|
@ -27,7 +27,7 @@ using namespace Genode;
|
||||
using namespace Codezero;
|
||||
|
||||
|
||||
void Platform_thread::set_cpu(unsigned int cpu_no)
|
||||
void Platform_thread::affinity(unsigned int cpu_no)
|
||||
{
|
||||
PDBG("not yet implemented");
|
||||
}
|
||||
|
Reference in New Issue
Block a user