]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Library/BaseCryptLib/Hash/CryptParallelHash.c
CryptPkg: Enable CryptoPkg BaseCryptLib ParallelHash for PEI and DXE
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / Hash / CryptParallelHash.c
index f7ce9dbf523e9d518e4361e013a6874f81bf6f9c..2931123736e36ecd4309cee36c6f46f2cd5e5956 100644 (file)
@@ -7,7 +7,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 **/\r
 \r
 #include "CryptParallelHash.h"\r
-#include <Library/MmServicesTableLib.h>\r
 #include <Library/SynchronizationLib.h>\r
 \r
 #define PARALLELHASH_CUSTOMIZATION  "ParallelHash"\r
@@ -69,27 +68,6 @@ ParallelHashApExecute (
   }\r
 }\r
 \r
-/**\r
-  Dispatch the block task to each AP in SMM mode.\r
-\r
-**/\r
-VOID\r
-EFIAPI\r
-MmDispatchBlockToAP (\r
-  VOID\r
-  )\r
-{\r
-  UINTN  Index;\r
-\r
-  for (Index = 0; Index < gMmst->NumberOfCpus; Index++) {\r
-    if (Index != gMmst->CurrentlyExecutingCpu) {\r
-      gMmst->MmStartupThisAp (ParallelHashApExecute, Index, NULL);\r
-    }\r
-  }\r
-\r
-  return;\r
-}\r
-\r
 /**\r
   Parallel hash function ParallelHash256, as defined in NIST's Special Publication 800-185,\r
   published December 2016.\r
@@ -197,9 +175,7 @@ ParallelHash256HashAll (
   //\r
   // Dispatch blocklist to each AP.\r
   //\r
-  if (gMmst != NULL) {\r
-    MmDispatchBlockToAP ();\r
-  }\r
+  DispatchBlockToAp ();\r
 \r
   //\r
   // Wait until all block hash completed.\r