From patchwork Tue Feb 23 20:59:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Pan X-Patchwork-Id: 8395891 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DAA6B9F52D for ; Tue, 23 Feb 2016 21:00:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2B603202EC for ; Tue, 23 Feb 2016 21:00:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 41AEB20279 for ; Tue, 23 Feb 2016 21:00:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755279AbcBWVA1 (ORCPT ); Tue, 23 Feb 2016 16:00:27 -0500 Received: from mga03.intel.com ([134.134.136.65]:4902 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755162AbcBWVA1 (ORCPT ); Tue, 23 Feb 2016 16:00:27 -0500 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 23 Feb 2016 13:00:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,491,1449561600"; d="scan'208";a="893028994" Received: from icelake.jf.intel.com ([10.7.199.66]) by orsmga001.jf.intel.com with ESMTP; 23 Feb 2016 13:00:28 -0800 From: Jacob Pan To: LKML , Linux PM , Thomas Gleixner , Rafael Wysocki Cc: Srinivas Pandruvada , "David S. Miller" , Andrew Morton , Peter Zijlstra , Rusty Russell , Jacob Pan Subject: [PATCH v5 1/2] cpumask: export cpumask_any_but Date: Tue, 23 Feb 2016 12:59:11 -0800 Message-Id: <1456261152-21907-2-git-send-email-jacob.jun.pan@linux.intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456261152-21907-1-git-send-email-jacob.jun.pan@linux.intel.com> References: <1456261152-21907-1-git-send-email-jacob.jun.pan@linux.intel.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 Export cpumask_any_but() for module use. This will be used by drivers such as intel_rapl to locate an active cpu on a socket. Signed-off-by: Jacob Pan Acked-by: Rusty Russell --- lib/cpumask.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cpumask.c b/lib/cpumask.c index 5a70f61..81dedaa 100644 --- a/lib/cpumask.c +++ b/lib/cpumask.c @@ -41,6 +41,7 @@ int cpumask_any_but(const struct cpumask *mask, unsigned int cpu) break; return i; } +EXPORT_SYMBOL(cpumask_any_but); /* These are not inline because of header tangles. */ #ifdef CONFIG_CPUMASK_OFFSTACK