SMP - can boot even if some cpus fail to boot

- EBADCPU is returned is scheduler tries to run a process on a CPU
  that either does not exist or isn't booted

- this change was originally meant to deal with stupid cpuid
  instruction which provides totally useless information about
  hyper-threading and MPS which does not deal with ht at all. ACPI
  provides correct information. If ht is turned off it looks like some
  CPUs failed to boot.  Nevertheless this patch may be handy for
  testing/benchmarking in the future.
This commit is contained in:
Tomas Hruby
2010-09-15 14:11:21 +00:00
parent 421f324baa
commit 1f89845bb2
6 changed files with 40 additions and 5 deletions

View File

@@ -130,4 +130,6 @@ extern int errno; /* place where the error numbers go */
#define EBADEPT (_SIGN 301) /* specified endpoint is bad */
#define EDEADEPT (_SIGN 302) /* specified endpoint is not alive */
#define EBADCPU (_SIGN 1000) /* requested CPU does not work */
#endif /* _ERRNO_H */