From: Lan Tianyu <tianyu.lan@intel.com>
To: "R, Durgadoss" <durgadoss.r@intel.com>
Cc: "rjw@sisk.pl" <rjw@sisk.pl>, "lenb@kernel.org" <lenb@kernel.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
"Zhang, Rui" <rui.zhang@intel.com>
Subject: Re: [PATCH 1/3] ACPI/Thermal: Remove the unused lock of struct acpi_thermal
Date: Thu, 15 Aug 2013 08:28:58 +0800 [thread overview]
Message-ID: <520C20CA.5060403@intel.com> (raw)
In-Reply-To: <4D68720C2E767A4AA6A8796D42C8EB59D135EA@BGSMSX103.gar.corp.intel.com>
On 2013年08月15日 01:05, R, Durgadoss wrote:
>
>> -----Original Message-----
>> From: linux-acpi-owner@vger.kernel.org [mailto:linux-acpi-
>> owner@vger.kernel.org] On Behalf Of tianyu.lan@intel.com
>> Sent: Wednesday, August 14, 2013 6:31 PM
>> To: rjw@sisk.pl; lenb@kernel.org
>> Cc: Lan, Tianyu; linux-acpi@vger.kernel.org; Zhang, Rui
>> Subject: [PATCH 1/3] ACPI/Thermal: Remove the unused lock of struct
>> acpi_thermal
>>
>> From: Lan Tianyu <tianyu.lan@intel.com>
>>
>> The acpi_thermal->lock now just is initialized when thermal zone device
>> is added and destroyed when thermal zone is removed. Never being used
>> any other places. So remove it.
>>
>
> Hi Tianyu,
>
> Very Nice catch. All three patches look fine to me.
> For all three,
> Acked-by: Durgadoss R <durgadoss.r@intel.com>
Thanks for Acks.
>
> Thanks,
> Durga
>
>> Acked-by: Zhang Rui <rui.zhang@intel.com>
>> Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
>> ---
>> drivers/acpi/thermal.c | 4 ----
>> 1 file changed, 4 deletions(-)
>>
>> diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
>> index a3e38a0..850818d 100644
>> --- a/drivers/acpi/thermal.c
>> +++ b/drivers/acpi/thermal.c
>> @@ -190,7 +190,6 @@ struct acpi_thermal {
>> struct thermal_zone_device *thermal_zone;
>> int tz_enabled;
>> int kelvin_offset;
>> - struct mutex lock;
>> };
>>
>> /* --------------------------------------------------------------------------
>> @@ -1088,8 +1087,6 @@ static int acpi_thermal_add(struct acpi_device *device)
>> strcpy(acpi_device_name(device), ACPI_THERMAL_DEVICE_NAME);
>> strcpy(acpi_device_class(device), ACPI_THERMAL_CLASS);
>> device->driver_data = tz;
>> - mutex_init(&tz->lock);
>> -
>>
>> result = acpi_thermal_get_info(tz);
>> if (result)
>> @@ -1122,7 +1119,6 @@ static int acpi_thermal_remove(struct acpi_device
>> *device)
>> tz = acpi_driver_data(device);
>>
>> acpi_thermal_unregister_thermal_zone(tz);
>> - mutex_destroy(&tz->lock);
>> kfree(tz);
>> return 0;
>> }
>> --
>> 1.8.4.rc0.1.g8f6a3e5.dirty
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Best regards
Tianyu Lan
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-08-15 0:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-14 13:00 [PATCH 1/3] ACPI/Thermal: Remove the unused lock of struct acpi_thermal tianyu.lan
2013-08-14 13:00 ` [PATCH 2/3] ACPI/Thermal: Remove unused macro in the driver/acpi/thermal.c tianyu.lan
2013-08-14 13:00 ` [PATCH 3/3] ACPI/Thermal: Use THERMAL_TRIPS_NONE macro to replace number tianyu.lan
2013-08-14 17:05 ` [PATCH 1/3] ACPI/Thermal: Remove the unused lock of struct acpi_thermal R, Durgadoss
2013-08-15 0:28 ` Lan Tianyu [this message]
2013-08-19 23:39 ` Rafael J. Wysocki
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-all 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=520C20CA.5060403@intel.com \
--to=tianyu.lan@intel.com \
--cc=durgadoss.r@intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=rui.zhang@intel.com \
/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