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.