\r
SmmPerformanceHandlerEx(), SmmPerformanceHandler() will receive untrusted input and do basic validation.\r
\r
-Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2011 - 2017, 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
GetGaugeEx\r
};\r
\r
+PERFORMANCE_PROPERTY mPerformanceProperty;\r
+\r
/**\r
Searches in the gauge array with keyword Handle, Token, Module and Identfier.\r
\r
{\r
EFI_STATUS Status;\r
EFI_HANDLE Handle;\r
+ PERFORMANCE_PROPERTY *PerformanceProperty;\r
\r
//\r
// Initialize spin lock\r
ASSERT_EFI_ERROR (Status);\r
Status = gSmst->SmiHandlerRegister (SmmPerformanceHandlerEx, &gSmmPerformanceExProtocolGuid, &Handle);\r
ASSERT_EFI_ERROR (Status);\r
+\r
+ Status = EfiGetSystemConfigurationTable (&gPerformanceProtocolGuid, (VOID **) &PerformanceProperty);\r
+ if (EFI_ERROR (Status)) {\r
+ //\r
+ // Install configuration table for performance property.\r
+ //\r
+ mPerformanceProperty.Revision = PERFORMANCE_PROPERTY_REVISION;\r
+ mPerformanceProperty.Reserved = 0;\r
+ mPerformanceProperty.Frequency = GetPerformanceCounterProperties (\r
+ &mPerformanceProperty.TimerStartValue,\r
+ &mPerformanceProperty.TimerEndValue\r
+ );\r
+ Status = gBS->InstallConfigurationTable (&gPerformanceProtocolGuid, &mPerformanceProperty);\r
+ ASSERT_EFI_ERROR (Status);\r
+ }\r
}\r
\r
/**\r