Uh oh!
There was an error while loading. Please reload this page.
bpo-41440: add os.cpu_count() support for VxWorks RTOS - #21685
Conversation
Uh oh!
There was an error while loading. Please reload this page.
bedevere-bot
commented
Jul 30, 2020
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
pxinwr
commented
Jul 31, 2020
I have made the requested changes; please review again |
bedevere-bot
commented
Jul 31, 2020
Thanks for making the requested changes! @corona10: please review the changes made to this pull request. |
Uh oh!
There was an error while loading. Please reload this page.
bedevere-bot
commented
Jul 31, 2020
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
pxinwr
commented
Jul 31, 2020
I have made the requested changes; please review again |
bedevere-bot
commented
Jul 31, 2020
Thanks for making the requested changes! @corona10: please review the changes made to this pull request. |
Uh oh!
There was an error while loading. Please reload this page.
bedevere-bot
commented
Jul 31, 2020
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase And if you don't make the requested changes, you will be put in the comfy chair! |
This reverts commit 88e7cea.
pxinwr
commented
Aug 1, 2020
I have made the requested changes; please review again |
bedevere-bot
commented
Aug 1, 2020
Thanks for making the requested changes! @corona10: please review the changes made to this pull request. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
pxinwr
commented
Aug 10, 2020
@corona10 Thanks for merging it. |
VxWorks RTOS provides API vxCpuEnabledGet() to get the set of running CPUs in the system. The return value of vxCpuEnabledGet() is the type cpuset_t defined as shown below. Every bit in the cpuset_t represents the individual CPU No. That is bit 0 corresponds to cpu0, bit 1 corresponds to cpu1, etc. So counting the ones count with __builtin_popcount will get the running CPU count.
typedef unsigned int cpuset_t;
https://bugs.python.org/issue41440