From patchwork Thu Oct 3 15:56:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20792 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gg0-f197.google.com (mail-gg0-f197.google.com [209.85.161.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CAA2F25CAB for ; Thu, 3 Oct 2013 15:57:23 +0000 (UTC) Received: by mail-gg0-f197.google.com with SMTP id l4sf2433700ggi.8 for ; Thu, 03 Oct 2013 08:57:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state: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=t1mUjJ7+SQtHsGKu0c5LLnPJoEf66RGg62sojBnRoTY=; b=cG+2kExtPU0TMalKLrupAjATEl9pIZTVJAnc6C6zRF3TVf8jKZ/PAiYZNR1ph1gPn6 gEYkLd6W+zfMm7/J/P7GJz4XqJNuoptrKjrLY5CHtBIeRbj0c4+Z+GPeQEn5dBLRa6S4 8Eg8JA3m8+G5AiOqEHcsfg/21o72qwfFWZMMzW4FSTQedUkhs8fo13kXmbGqyrlbtpSM IOUzZRFpmYDXH8eihSisqSQCqbPuFrIuzPboNOKwpLmYSYd+bvvfU9YUkwM/4iMZ8pDB +3Cy9dBJp8DKM6LwghFY/bYBxUztVu6KgMNWvtavUliXqvOux20g0VpFLsHyyz738a4s +bmA== X-Received: by 10.236.97.7 with SMTP id s7mr7899051yhf.56.1380815843572; Thu, 03 Oct 2013 08:57:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.6.73 with SMTP id y9ls1013760qey.60.gmail; Thu, 03 Oct 2013 08:57:23 -0700 (PDT) X-Received: by 10.52.227.6 with SMTP id rw6mr6731857vdc.19.1380815843440; Thu, 03 Oct 2013 08:57:23 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id fx4si1887519vdc.13.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:57:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.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.220.171; Received: by mail-vc0-f171.google.com with SMTP id ij15so1097037vcb.16 for ; Thu, 03 Oct 2013 08:57:23 -0700 (PDT) X-Gm-Message-State: ALoCoQkLrhiuZiiIWfmYt7PsV/OXqBqZ8phBScw2/518CmOmpYu8Q+GmxCvL35x6Q3MvqSo7BfZF X-Received: by 10.221.44.136 with SMTP id ug8mr7967287vcb.13.1380815843342; Thu, 03 Oct 2013 08:57:23 -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 u4csp189159vcz; Thu, 3 Oct 2013 08:57:22 -0700 (PDT) X-Received: by 10.68.221.233 with SMTP id qh9mr1306998pbc.103.1380815842396; Thu, 03 Oct 2013 08:57:22 -0700 (PDT) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by mx.google.com with ESMTPS id a4si10821pbc.38.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:57:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.169 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.169; Received: by mail-pd0-f169.google.com with SMTP id r10so2679532pdi.0 for ; Thu, 03 Oct 2013 08:57:21 -0700 (PDT) X-Received: by 10.66.234.193 with SMTP id ug1mr10492732pac.92.1380815841865; Thu, 03 Oct 2013 08:57:21 -0700 (PDT) Received: from localhost ([122.167.152.64]) by mx.google.com with ESMTPSA id ct4sm9023026pbb.41.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:57:21 -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 V2 03/16] cpuidle: make __cpuidle_get_cpu_driver() inline Date: Thu, 3 Oct 2013 21:26:42 +0530 Message-Id: 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.220.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. Acked-by: Daniel Lezcano Signed-off-by: Viresh Kumar --- 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); }