Description of problem:
Recently Fenghua implemented getcpu system call for IPF that is
a clean interface to get the CPU and node number a process is running on.
There is /proc/<pid>/stat, but that is not a well documented API that
can be used in production systems. Andi added a system call in x86-64 that
The implementation includes both sys_getcpu and fsys_getcpu.
sys_getcpu patch can be found at:
[PATCH] Hook up getcpu system call for IA64
fsys_getcpu patch can be found at:
[PATCH] fsys_getcpu for IA64
Version-Release number of selected component (if applicable):
Steps to Reproduce:
*** This bug has been marked as a duplicate of 241592 ***