]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg: Add dynamic type for PcdCpuMaxLogicalProcessorNumber
authorJeff Fan <jeff.fan@intel.com>
Thu, 3 Mar 2016 07:25:26 +0000 (15:25 +0800)
committerJeff Fan <jeff.fan@intel.com>
Fri, 4 Mar 2016 03:12:36 +0000 (11:12 +0800)
Currently, PcdCpuMaxLogicalProcessorNumber only supports fixed type. There are
some requests on this PCD to support dynamic type also. For example, platform
may dynamically set this PCD to actual processor count to save memory or improve
boot performance.

Cc: Feng Tian <feng.tian@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
UefiCpuPkg/UefiCpuPkg.dec

index 472b38acbc1eb9687cad96c0b4e4dfb3fc508f50..16637dfdc14ba644423a97584eb179b2bf882407 100644 (file)
@@ -1,7 +1,7 @@
 ## @file  UefiCpuPkg.dec\r
 # This Package provides UEFI compatible CPU modules and libraries.\r
 #\r
-# Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
 #\r
 # This program and the accompanying materials are licensed and made available under\r
 # the terms and conditions of the BSD License which accompanies this distribution.\r
   # @Prompt Configure delay value after send an INIT IPI\r
   gUefiCpuPkgTokenSpaceGuid.PcdCpuInitIpiDelayInMicroSeconds|10000|UINT32|0x30000002\r
 \r
-  ## Specifies max supported number of Logical Processors.\r
-  # @Prompt Configure max supported number of Logical Processors\r
-  gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64|UINT32|0x00000002\r
-\r
   ## This value specifies the Application Processor (AP) stack size, used for Mp Service, which must\r
   ## aligns the address on a 4-KByte boundary.\r
   # @Prompt Configure stack size for Application Processor (AP)\r
   gUefiCpuPkgTokenSpaceGuid.PcdCpuNumberOfReservedVariableMtrrs|0x2|UINT32|0x00000015\r
 \r
 [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx]\r
+  ## Specifies max supported number of Logical Processors.\r
+  # @Prompt Configure max supported number of Logical Processors\r
+  gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64|UINT32|0x00000002\r
   ## Specifies timeout value in microseconds for the BSP to detect all APs for the first time.\r
   # @Prompt Timeout for the BSP to detect all APs for the first time.\r
   gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds|50000|UINT32|0x00000004\r