From patchwork Sat Mar 29 12:05:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 27393 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8C2D720553 for ; Sat, 29 Mar 2014 12:13:42 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id j7sf12213022qaq.10 for ; Sat, 29 Mar 2014 05:13:42 -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:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe:content-type; bh=cBTvvqLRXXxl0f61t4bxrfwuxGhjOgbLQWbw2d4FV/k=; b=Xyr43N1Dv2SSgq9roon2Jzoq7BgJfSj+3WtvB0TBwYwMayGi61LDXvJmgv8aa6dFLb q6am3Tjnqj778YE5PDP8aqExHM782jCoalqLYdIvrVEVUGRgNBq4mlJi40qIRcHVT4RB xNsAON2DDTwxIDH4G8Fzi4I8g57udTPRSNzeGypVLFxuicGNKpaev+4A6JZcMGNemnCD KSXFM9kyPe09Zad6nI+sW+/aUCYqpdAySjzLEEq+/gUqN9d6VLf5/NjDeQZCQgG4/37y HdopY7B54qnpNgzPcVZawr3fBYcSdAbhL6xrl1S7GMhR9gONMRCG348bKGCh9eKf/4L2 HdkQ== X-Gm-Message-State: ALoCoQmzb+l/8oEV7+rh5aNEmKHrmj1UTTYa9KXh2ev9e1Qa74HFL2LAp6uIvKQWVJKRW+r9vWXx X-Received: by 10.236.179.66 with SMTP id g42mr4971517yhm.17.1396094764840; Sat, 29 Mar 2014 05:06:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: lng-odp@linaro.org Received: by 10.140.24.210 with SMTP id 76ls1846270qgr.66.gmail; Sat, 29 Mar 2014 05:06:04 -0700 (PDT) X-Received: by 10.140.48.77 with SMTP id n71mr669416qga.90.1396094764647; Sat, 29 Mar 2014 05:06:04 -0700 (PDT) Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com [209.85.216.181]) by mx.google.com with ESMTPS id 6si3763147qav.251.2014.03.29.05.06.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 29 Mar 2014 05:06:04 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.216.181 is neither permitted nor denied by best guess record for domain of mike.holmes@linaro.org) client-ip=209.85.216.181; Received: by mail-qc0-f181.google.com with SMTP id e9so7004516qcy.40 for ; Sat, 29 Mar 2014 05:06:04 -0700 (PDT) X-Received: by 10.229.58.68 with SMTP id f4mr928936qch.18.1396094764505; Sat, 29 Mar 2014 05:06:04 -0700 (PDT) Received: from fedora1.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id s6sm15940622qad.22.2014.03.29.05.06.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 29 Mar 2014 05:06:04 -0700 (PDT) From: Mike Holmes To: lng-odp@linaro.org Cc: Mike Holmes Subject: [lng-odp] [PATCH] odp_coremask: Add const to the mask Date: Sat, 29 Mar 2014 08:05:54 -0400 Message-Id: <1396094754-18660-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 1.9.1 X-Original-Sender: mike.holmes@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.216.181 is neither permitted nor denied by best guess record for domain of mike.holmes@linaro.org) smtp.mail=mike.holmes@linaro.org Precedence: list Mailing-list: list lng-odp@linaro.org; contact lng-odp+owners@linaro.org List-ID: X-Google-Group-Id: 474323889996 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Mike Holmes --- platform/linux-generic/source/odp_coremask.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/source/odp_coremask.c b/platform/linux-generic/source/odp_coremask.c index 50f303e..22be78f 100644 --- a/platform/linux-generic/source/odp_coremask.c +++ b/platform/linux-generic/source/odp_coremask.c @@ -83,7 +83,7 @@ void odp_coremask_clr(int core, odp_coremask_t *mask) } -int odp_coremask_isset(int core, odp_coremask_t *mask) +int odp_coremask_isset(int core, const odp_coremask_t *mask) { /* should not be more than 63 * core no. should be from 0..63= 64bit @@ -96,7 +96,7 @@ int odp_coremask_isset(int core, odp_coremask_t *mask) return (mask->_u64[0] >> core) & 1; } -int odp_coremask_count(odp_coremask_t *mask) +int odp_coremask_count(const odp_coremask_t *mask) { uint64_t coremask = mask->_u64[0]; int cnt = 0;