From patchwork Mon Mar 28 14:03:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 8679471 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8BC6DC0553 for ; Mon, 28 Mar 2016 14:04:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B696420211 for ; Mon, 28 Mar 2016 14:03:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3C137201ED for ; Mon, 28 Mar 2016 14:03:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752175AbcC1ODx (ORCPT ); Mon, 28 Mar 2016 10:03:53 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:36223 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751677AbcC1ODw (ORCPT ); Mon, 28 Mar 2016 10:03:52 -0400 Received: by mail-pf0-f177.google.com with SMTP id u190so138220271pfb.3; Mon, 28 Mar 2016 07:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Fv/eGNkxb1ZrfH3pBFuY+UH4YpBPyC9QA4MdbCLNsRY=; b=p0Ro5jJjg92j9ye53AYrSN3PnLUABfCo55d32UQ54cBBgDAVoWK/ZdxNCU0kwFQzSW jYetiQTIu6bYGby6EmHhTRF7ZH0sae0LEj1JYrFvluyXQhnmpCnNcu4uhCFipcFcsx23 7rg3EgXhxGy18Nj6PwitcajesVWTK/8uRADErLl8RmhezK8zXdbKTRM1bu67azGSDqLj 56kG3OWEENzyB6uVL8ocDSkeqvYsEVI4xhucnlHApMhK18Tshco3vfSDAQmTUCvDouNc QvwgFzzBgIoMie3Ox+IG3zNDyvfn6cjBof/b4v76cgSLyLwb9+1Hm9lVgek3Nig60Bf7 /rbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Fv/eGNkxb1ZrfH3pBFuY+UH4YpBPyC9QA4MdbCLNsRY=; b=TFLWUKNEgI80BtiJDinTJplpuMSvGt1cXtwxu6MyjLex3XeZ6guO0u5WWltY4elXLD ZXgrgR4kjvZ8PgeB/Wa0ea/duEeQrc8RumbWyFUOKIO2oNup6Df7OcuhI1pQlG7V/3fU d/hTM37lR1yW5s7qcbY5PNqHAheKjl/P0fdJJH3ByJJlss0hyJ8pDAcZwEoHq1Pqbty/ D4/GIyz5j/eZ1a/WkHPDkG5ku1jonho0eovVSW7QGb0M37wu9YbZJ/yG9cIHF+3+2ypr FmD43PUy90dfHm08oS3u0Vrq4sUjZi2yrTIyFZUYLasJ/z1cS/CoB7dOmbLGWWRoSU7Q psbA== X-Gm-Message-State: AD7BkJKnFELjxPUg7mjS+0OLbtw0OWh86T2lTOOO7rnu3KIhfloor0nhR5nKT+0Ze2l2CA== X-Received: by 10.98.73.88 with SMTP id w85mr43618944pfa.82.1459173831832; Mon, 28 Mar 2016 07:03:51 -0700 (PDT) Received: from localhost ([2601:647:4203:c8e0:29c3:2c62:b546:6713]) by smtp.gmail.com with ESMTPSA id c18sm36113059pfj.41.2016.03.28.07.03.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Mar 2016 07:03:51 -0700 (PDT) From: Eduardo Valentin To: Rui Zhang Cc: Eduardo Valentin , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] thermal: reduce the size of trips_disabled Date: Mon, 28 Mar 2016 07:03:48 -0700 Message-Id: <1459173828-11149-1-git-send-email-edubezval@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently we have a maximum of 12 trips per thermal zone: #define THERMAL_MAX_TRIPS 12 For this reason, there is no need to have a long to keep track of status of each trip. Fixes: 81ad4276b505e987dd8ebbdf63605f92cd172b52 Cc: Zhang Rui Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- include/linux/thermal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/thermal.h b/include/linux/thermal.h index a55d052..47e3a93 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -192,7 +192,7 @@ struct thermal_zone_device { struct thermal_attr *trip_hyst_attrs; void *devdata; int trips; - unsigned long trips_disabled; /* bitmap for disabled trips */ + unsigned int trips_disabled; /* bitmap for disabled trips */ int passive_delay; int polling_delay; int temperature;