SMM Timer feature support\r
\r
Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
#include "PiSmmCpuDxeSmm.h"\r
\r
-UINT64 mTimeoutTicker = 0;\r
+UINT64 mTimeoutTicker = 0;\r
//\r
// Number of counts in a roll-over cycle of the performance counter.\r
//\r
-UINT64 mCycle = 0;\r
+UINT64 mCycle = 0;\r
//\r
// Flag to indicate the performance counter is count-up or count-down.\r
//\r
\r
TimerFrequency = GetPerformanceCounterProperties (&Start, &End);\r
mTimeoutTicker = DivU64x32 (\r
- MultU64x64(TimerFrequency, PcdGet64 (PcdCpuSmmApSyncTimeout)),\r
+ MultU64x64 (TimerFrequency, PcdGet64 (PcdCpuSmmApSyncTimeout)),\r
1000 * 1000\r
);\r
if (End < Start) {\r
mCountDown = TRUE;\r
- mCycle = Start - End;\r
+ mCycle = Start - End;\r
} else {\r
mCountDown = FALSE;\r
- mCycle = End - Start;\r
+ mCycle = End - Start;\r
}\r
}\r
\r
return GetPerformanceCounter ();\r
}\r
\r
-\r
/**\r
Check if the SMM AP Sync timer is timeout.\r
\r
BOOLEAN\r
EFIAPI\r
IsSyncTimerTimeout (\r
- IN UINT64 Timer\r
+ IN UINT64 Timer\r
)\r
{\r
UINT64 CurrentTimer;\r
}\r
}\r
\r
- return (BOOLEAN) (Delta >= mTimeoutTicker);\r
+ return (BOOLEAN)(Delta >= mTimeoutTicker);\r
}\r