Logical CPU -> physical CPU conversion

Joseph Koshy joseph.koshy at gmail.com
Thu Feb 17 00:27:31 PST 2005


Given a cpu number for a logical CPU, is there a way to map
this to a CPU number for a physical CPU?

Will:

  physcpu = logicalcpu & ~1;

always work?

-- 
FreeBSD Volunteer, http://people.freebsd.org/~jkoshy


More information about the freebsd-smp mailing list