X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=CryptoPkg%2FLibrary%2FBaseCryptLib%2FHash%2FCryptParallelHash.c;fp=CryptoPkg%2FLibrary%2FBaseCryptLib%2FHash%2FCryptParallelHash.c;h=2931123736e36ecd4309cee36c6f46f2cd5e5956;hp=f7ce9dbf523e9d518e4361e013a6874f81bf6f9c;hb=5d5be45bd11117c1e479863125e7d772e54772c9;hpb=47d988387efc8b45561f542f7a8e5b6a43979a8c diff --git a/CryptoPkg/Library/BaseCryptLib/Hash/CryptParallelHash.c b/CryptoPkg/Library/BaseCryptLib/Hash/CryptParallelHash.c index f7ce9dbf52..2931123736 100644 --- a/CryptoPkg/Library/BaseCryptLib/Hash/CryptParallelHash.c +++ b/CryptoPkg/Library/BaseCryptLib/Hash/CryptParallelHash.c @@ -7,7 +7,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "CryptParallelHash.h" -#include #include #define PARALLELHASH_CUSTOMIZATION "ParallelHash" @@ -69,27 +68,6 @@ ParallelHashApExecute ( } } -/** - Dispatch the block task to each AP in SMM mode. - -**/ -VOID -EFIAPI -MmDispatchBlockToAP ( - VOID - ) -{ - UINTN Index; - - for (Index = 0; Index < gMmst->NumberOfCpus; Index++) { - if (Index != gMmst->CurrentlyExecutingCpu) { - gMmst->MmStartupThisAp (ParallelHashApExecute, Index, NULL); - } - } - - return; -} - /** Parallel hash function ParallelHash256, as defined in NIST's Special Publication 800-185, published December 2016. @@ -197,9 +175,7 @@ ParallelHash256HashAll ( // // Dispatch blocklist to each AP. // - if (gMmst != NULL) { - MmDispatchBlockToAP (); - } + DispatchBlockToAp (); // // Wait until all block hash completed.