Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - API to switch between CPU's?: Page 1 of 10 (10 Items)
   
API to switch between CPU's?  
Related to ClockCycles(). To fix multicore issues I need offsets (i.e. time zero) for all cpus,
kernel has  uint64_t			clockcycles_offset[PROCESSORS_MAX];
which I need but I cannot get it because it is kernel. To do in myself I need to do something like


for (i=0;i<cpunum();i++) {
   bind_to_cpu(i);
   clockcycles_offset[i]=ClockCycles();
}
unbind();

So the problem is I cannot find how to bind to specific cpu programmatically. Anybody knows?