Return configured processors in NumberOfProcessors() on posix platforms

On Linux/Mac/FreeBSD platform, NumberOfProcessors() was returning the number of
online processors. Change it to return the number of configured processors
(incl. offline processors).

1. Most callers of this API expect it to return totally available cpu cores,
   mainly for threading optimization.

2. The number of online processors is changed within seconds on some embedded
   platforms. It is wrong to pass the cached value of the number of currently
   online processors to Blink sandbox.

BUG=404364
TEST=Tested on nyan (it may have 1~4 cpu cores online)

Review URL: https://codereview.chromium.org/454053002

Cr-Commit-Position: refs/heads/master@{#290209}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290209 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: d617e8bed8c797344feb4511e15aa30fdd922693
1 file changed
tree: e55fc93e8715a00b1c1e54bf2b911d3d1caecd0c
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/