public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Jeff Fan <jeff.fan@intel.com>
To: edk2-devel@ml01.01.org
Cc: Laszlo Ersek <lersek@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Feng Tian <feng.tian@intel.com>,
	Jiewen Yao <jiewen.yao@intel.com>,
	Michael D Kinney <michael.d.kinney@intel.com>
Subject: [PATCH 1/2] UefiCpuPkg/DxeMpLib: Rename MpInitExitBootServicesCallback()
Date: Fri, 11 Nov 2016 19:57:39 +0800	[thread overview]
Message-ID: <20161111115740.8024-2-jeff.fan@intel.com> (raw)
In-Reply-To: <20161111115740.8024-1-jeff.fan@intel.com>

Rename MpInitExitBootServicesCallback() to MpInitChangeApLoopCallback() because
it will not only be invoked on Exit Boot Service Event, but also will be invoked
on Legacy Ready To Boot Event.

https://bugzilla.tianocore.org/show_bug.cgi?id=210

Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
---
 UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c b/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c
index 4b929ff..7ba4b80 100644
--- a/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c
+++ b/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c
@@ -261,7 +261,7 @@ RelocateApLoop (
 **/
 VOID
 EFIAPI
-MpInitExitBootServicesCallback (
+MpInitChangeApLoopCallback (
   IN EFI_EVENT                Event,
   IN VOID                     *Context
   )
@@ -273,7 +273,7 @@ MpInitExitBootServicesCallback (
   CpuMpData->PmCodeSegment = GetProtectedModeCS ();
   CpuMpData->ApLoopMode = PcdGet8 (PcdCpuApLoopMode);
   WakeUpAP (CpuMpData, TRUE, 0, RelocateApLoop, mReservedApLoopFunc);
-  DEBUG ((DEBUG_INFO, "MpInitExitBootServicesCallback() done!\n"));
+  DEBUG ((DEBUG_INFO, "%a() done!\n", __FUNCTION__));
 }
 
 /**
@@ -343,7 +343,7 @@ InitMpGlobalData (
   Status = gBS->CreateEvent (
                   EVT_SIGNAL_EXIT_BOOT_SERVICES,
                   TPL_CALLBACK,
-                  MpInitExitBootServicesCallback,
+                  MpInitChangeApLoopCallback,
                   NULL,
                   &mMpInitExitBootServicesEvent
                   );
-- 
2.9.3.windows.2



  reply	other threads:[~2016-11-11 11:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-11 11:57 [PATCH 0/2] Place APs to suitable state on Legacy OS boot Jeff Fan
2016-11-11 11:57 ` Jeff Fan [this message]
2016-11-11 11:57 ` [PATCH 2/2] UefiCpuPkg/DxeMpLib: " Jeff Fan
2016-11-11 12:33 ` [PATCH 0/2] " Laszlo Ersek
2016-11-11 12:39   ` Fan, Jeff
2016-11-14  1:37 ` Tian, Feng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161111115740.8024-2-jeff.fan@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox