diff mbox

[2/3] acpi: method: add _TFP test

Message ID 1442823819-15419-3-git-send-email-alex.hung@canonical.com
State Accepted
Headers show

Commit Message

Alex Hung Sept. 21, 2015, 8:23 a.m. UTC
Signed-off-by: Alex Hung <alex.hung@canonical.com>
---
 src/acpi/method/method.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Comments

Colin Ian King Sept. 21, 2015, 9:27 a.m. UTC | #1
On 21/09/15 09:23, Alex Hung wrote:
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>  src/acpi/method/method.c | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c
> index 8b470ce..bd0134a 100644
> --- a/src/acpi/method/method.c
> +++ b/src/acpi/method/method.c
> @@ -229,7 +229,7 @@
>   * _TC1  11.4.12	Y
>   * _TC2  11.4.13	Y
>   * _TDL  8.4.3.5	Y
> - * _TFP  11.4.16	N
> + * _TFP  11.4.16	Y
>   * _TIP  9.18.9		Y
>   * _TIV  9.18.10	Y
>   * _TMP  11.4.14	Y
> @@ -5660,6 +5660,12 @@ static int method_test_TC2(fwts_framework *fw)
>  		"_TC2", NULL, 0, method_test_TCx_return, "_TC1");
>  }
>  
> +static int method_test_TFP(fwts_framework *fw)
> +{
> +	return method_evaluate_method(fw, METHOD_OPTIONAL,
> +		"_TFP", NULL, 0, method_test_integer_return, NULL);
> +}
> +
>  static int method_test_ACx(fwts_framework *fw)
>  {
>  	int i;
> @@ -6635,6 +6641,7 @@ static fwts_framework_minor_test method_tests[] = {
>  	{ method_test_SCP, "Test _SCP (Set Cooling Policy)." },
>  	{ method_test_TC1, "Test _TC1 (Thermal Constant 1)." },
>  	{ method_test_TC2, "Test _TC2 (Thermal Constant 2)." },
> +	{ method_test_TFP, "Test _TFP (Thermal fast Sampling Period)." },
>  	{ method_test_TMP, "Test _TMP (Thermal Zone Current Temp)." },
>  	{ method_test_TPT, "Test _TPT (Trip Point Temperature)." },
>  	{ method_test_TRT, "Test _TRT (Thermal Relationship Table)." },
> 
Acked-by: Colin Ian King <colin.king@canonical.com>
Ivan Hu Sept. 22, 2015, 3:02 a.m. UTC | #2
On 2015年09月21日 16:23, Alex Hung wrote:
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>   src/acpi/method/method.c | 9 ++++++++-
>   1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c
> index 8b470ce..bd0134a 100644
> --- a/src/acpi/method/method.c
> +++ b/src/acpi/method/method.c
> @@ -229,7 +229,7 @@
>    * _TC1  11.4.12	Y
>    * _TC2  11.4.13	Y
>    * _TDL  8.4.3.5	Y
> - * _TFP  11.4.16	N
> + * _TFP  11.4.16	Y
>    * _TIP  9.18.9		Y
>    * _TIV  9.18.10	Y
>    * _TMP  11.4.14	Y
> @@ -5660,6 +5660,12 @@ static int method_test_TC2(fwts_framework *fw)
>   		"_TC2", NULL, 0, method_test_TCx_return, "_TC1");
>   }
>
> +static int method_test_TFP(fwts_framework *fw)
> +{
> +	return method_evaluate_method(fw, METHOD_OPTIONAL,
> +		"_TFP", NULL, 0, method_test_integer_return, NULL);
> +}
> +
>   static int method_test_ACx(fwts_framework *fw)
>   {
>   	int i;
> @@ -6635,6 +6641,7 @@ static fwts_framework_minor_test method_tests[] = {
>   	{ method_test_SCP, "Test _SCP (Set Cooling Policy)." },
>   	{ method_test_TC1, "Test _TC1 (Thermal Constant 1)." },
>   	{ method_test_TC2, "Test _TC2 (Thermal Constant 2)." },
> +	{ method_test_TFP, "Test _TFP (Thermal fast Sampling Period)." },
>   	{ method_test_TMP, "Test _TMP (Thermal Zone Current Temp)." },
>   	{ method_test_TPT, "Test _TPT (Trip Point Temperature)." },
>   	{ method_test_TRT, "Test _TRT (Thermal Relationship Table)." },
>

Acked-by: Ivan Hu <ivan.hu@canonical.com>
diff mbox

Patch

diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c
index 8b470ce..bd0134a 100644
--- a/src/acpi/method/method.c
+++ b/src/acpi/method/method.c
@@ -229,7 +229,7 @@ 
  * _TC1  11.4.12	Y
  * _TC2  11.4.13	Y
  * _TDL  8.4.3.5	Y
- * _TFP  11.4.16	N
+ * _TFP  11.4.16	Y
  * _TIP  9.18.9		Y
  * _TIV  9.18.10	Y
  * _TMP  11.4.14	Y
@@ -5660,6 +5660,12 @@  static int method_test_TC2(fwts_framework *fw)
 		"_TC2", NULL, 0, method_test_TCx_return, "_TC1");
 }
 
+static int method_test_TFP(fwts_framework *fw)
+{
+	return method_evaluate_method(fw, METHOD_OPTIONAL,
+		"_TFP", NULL, 0, method_test_integer_return, NULL);
+}
+
 static int method_test_ACx(fwts_framework *fw)
 {
 	int i;
@@ -6635,6 +6641,7 @@  static fwts_framework_minor_test method_tests[] = {
 	{ method_test_SCP, "Test _SCP (Set Cooling Policy)." },
 	{ method_test_TC1, "Test _TC1 (Thermal Constant 1)." },
 	{ method_test_TC2, "Test _TC2 (Thermal Constant 2)." },
+	{ method_test_TFP, "Test _TFP (Thermal fast Sampling Period)." },
 	{ method_test_TMP, "Test _TMP (Thermal Zone Current Temp)." },
 	{ method_test_TPT, "Test _TPT (Trip Point Temperature)." },
 	{ method_test_TRT, "Test _TRT (Thermal Relationship Table)." },