Print this page
5255 uts shouldn't open-code ISP2

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/io/acpi/drmach_acpi/drmach_acpi.c
          +++ new/usr/src/uts/i86pc/io/acpi/drmach_acpi/drmach_acpi.c
↓ open down ↓ 887 lines elided ↑ open up ↑
 888  888  
 889  889          if (MAX_BOARDS > SHRT_MAX) {
 890  890                  cmn_err(CE_WARN, "!drmach_init: system has too many (%d) "
 891  891                      "hotplug capable boards.", MAX_BOARDS);
 892  892                  return (ENXIO);
 893  893          } else if (MAX_CMP_UNITS_PER_BOARD > 1) {
 894  894                  cmn_err(CE_WARN, "!drmach_init: DR doesn't support multiple "
 895  895                      "(%d) physical processors on one board.",
 896  896                      MAX_CMP_UNITS_PER_BOARD);
 897  897                  return (ENXIO);
 898      -        } else if (MAX_CORES_PER_CMP & (MAX_CORES_PER_CMP - 1)) {
      898 +        } else if (!ISP2(MAX_CORES_PER_CMP)) {
 899  899                  cmn_err(CE_WARN, "!drmach_init: number of logical CPUs (%d) in "
 900  900                      "physical processor is not power of 2.",
 901  901                      MAX_CORES_PER_CMP);
 902  902                  return (ENXIO);
 903  903          } else if (MAX_CPU_UNITS_PER_BOARD > DEVSET_CPU_NUMBER ||
 904  904              MAX_MEM_UNITS_PER_BOARD > DEVSET_MEM_NUMBER ||
 905  905              MAX_IO_UNITS_PER_BOARD > DEVSET_IO_NUMBER) {
 906  906                  cmn_err(CE_WARN, "!drmach_init: system has more CPU/memory/IO "
 907  907                      "units than the DR driver can handle.");
 908  908                  return (ENXIO);
↓ open down ↓ 2019 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX