Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bdf57de4 authored by Frans Pop's avatar Frans Pop Committed by Linus Torvalds
Browse files

acpi processor: remove superfluous warning message

This failure is very common on many platforms.  Handling it in the ACPI
processor driver is enough, and we don't need a warning message unless
CONFIG_ACPI_DEBUG is set.

Based on a patch from Zhang Rui.

Addresses http://bugzilla.kernel.org/show_bug.cgi?id=13389



Signed-off-by: default avatarFrans Pop <elendil@planet.nl>
Acked-by: default avatarZhang Rui <rui.zhang@intel.com>
Cc: Len Brown <lenb@kernel.org>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2a908002
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -840,8 +840,8 @@ static int acpi_processor_get_throttling_ptc(struct acpi_processor *pr)
	if (ret >= 0) {
	if (ret >= 0) {
		state = acpi_get_throttling_state(pr, value);
		state = acpi_get_throttling_state(pr, value);
		if (state == -1) {
		if (state == -1) {
			ACPI_WARNING((AE_INFO,
			ACPI_DEBUG_PRINT((ACPI_DB_INFO,
				"Invalid throttling state, reset"));
				"Invalid throttling state, reset\n"));
			state = 0;
			state = 0;
			ret = acpi_processor_set_throttling(pr, state, true);
			ret = acpi_processor_set_throttling(pr, state, true);
			if (ret)
			if (ret)