From patchwork Sun Sep 22 01:20:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20505 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f69.google.com (mail-qe0-f69.google.com [209.85.128.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E17AB25E85 for ; Sun, 22 Sep 2013 01:21:43 +0000 (UTC) Received: by mail-qe0-f69.google.com with SMTP id 1sf1940533qec.0 for ; Sat, 21 Sep 2013 18:21:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=xfPCkKFxEnu4z9ZDOXuXCa/FNiEXGVRNENo4yhsj85I=; b=FQIj7iRs33LQ4RfoPzENAgu5dwP6G6GMK48NCEoWgZE9XUX3rEB433SYIAyE6dLVBY XRxvyHrf/E958bNddJFygCUTmvM+c3GvQU4/BRsucpBC+0zhyupQmKbsfFd6IMPJBi3Y xqsUu4aHJsQYy4aJLpDrUyuvTXqXg2TS3+4W4uhq0q9/K/ZJg9ObG3YwE0mbjpQK4Apf mylxCaBs4p2e058YQKiVq9J68ZYZecyXaWM/mvhZwdpGlFmD23z68I7HrxsYRwlWGmIT LjpWH4hGNXacns42szt2/p+KgcTVWu8N2gXHat4tI3SzwXU4FgS6+mylmLxfZDKuDa4h TjgQ== X-Gm-Message-State: ALoCoQnbJStmNXFFP5OnMArGPoFTNKSQAPPFUgJkPC1UEIrdK6GAs/EM9JMBB9lUOEcWD2FqvCEB X-Received: by 10.224.137.67 with SMTP id v3mr6639967qat.0.1379812903798; Sat, 21 Sep 2013 18:21:43 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.11.179 with SMTP id r19ls724823qeb.76.gmail; Sat, 21 Sep 2013 18:21:43 -0700 (PDT) X-Received: by 10.52.32.37 with SMTP id f5mr8072941vdi.17.1379812903703; Sat, 21 Sep 2013 18:21:43 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id yc6si4529204vec.133.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:21:43 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.171; Received: by mail-ve0-f171.google.com with SMTP id pa12so1388679veb.2 for ; Sat, 21 Sep 2013 18:21:43 -0700 (PDT) X-Received: by 10.58.235.193 with SMTP id uo1mr13975286vec.6.1379812903606; Sat, 21 Sep 2013 18:21:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp91705vcz; Sat, 21 Sep 2013 18:21:43 -0700 (PDT) X-Received: by 10.66.230.233 with SMTP id tb9mr17222922pac.38.1379812902758; Sat, 21 Sep 2013 18:21:42 -0700 (PDT) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx.google.com with ESMTPS id ar2si15791000pbc.292.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:21:42 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.46 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.46; Received: by mail-pa0-f46.google.com with SMTP id fa1so2159494pad.5 for ; Sat, 21 Sep 2013 18:21:42 -0700 (PDT) X-Received: by 10.68.255.229 with SMTP id at5mr74244pbd.130.1379812902378; Sat, 21 Sep 2013 18:21:42 -0700 (PDT) Received: from localhost ([122.167.152.64]) by mx.google.com with ESMTPSA id 7sm28236815paf.22.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:21:41 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl, daniel.lezcano@linaro.org Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Viresh Kumar Subject: [PATCH 03/21] cpuidle: make __cpuidle_get_cpu_driver() inline Date: Sun, 22 Sep 2013 06:50:55 +0530 Message-Id: <0868fef3eca7cc04dc879da73f06e29e322c695b.1379779777.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , __cpuidle_get_cpu_driver() is a single line function and so deserves to be marked inline. Signed-off-by: Viresh Kumar Acked-by: Daniel Lezcano --- drivers/cpuidle/driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpuidle/driver.c b/drivers/cpuidle/driver.c index ced1df6..25455e8 100644 --- a/drivers/cpuidle/driver.c +++ b/drivers/cpuidle/driver.c @@ -29,7 +29,7 @@ static DEFINE_PER_CPU(struct cpuidle_driver *, cpuidle_drivers); * Returns a pointer to struct cpuidle_driver or NULL if no driver has been * registered for @cpu. */ -static struct cpuidle_driver *__cpuidle_get_cpu_driver(int cpu) +static inline struct cpuidle_driver *__cpuidle_get_cpu_driver(int cpu) { return per_cpu(cpuidle_drivers, cpu); }