From patchwork Sun Sep 14 19:33:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 37388 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EE05F206A5 for ; Sun, 14 Sep 2014 19:34:50 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id c41sf1704596eek.1 for ; Sun, 14 Sep 2014 12:34:49 -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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=bv/35tjhZsWkHCD9IxIck5yBiw+U/5CtoZP0THU7DMg=; b=Mu+rU+88HKFIRJ93nAYWEV95c640n1ReD20MNOsf3PY7i40q0jhwTXBstVpLRIwWzq dt81XYgz3I+8qyChnHFEZk2865whwwfbJGhB4kCm5klrqn8DstIne2LrosNHaQkWRucV 0d78dPFaX6iEhW5/6axE1h0BgyGDuaGuBhsRHYvNmvIbnT10/DANpdiF6LCxKU2hU2NG d1+GYRJznLgmn/kgksDkLrhPmZZD9jX5pl4KR3xNIfDNvWidSTKFCqMPdf5E2QunbN2D nvc4cJ8zrPWg4mJoV+V4QawY+xD21AjcVpitZh3t5pVlgNF0BSDKW8tkCs3tjyPG7Nlo lHFw== X-Gm-Message-State: ALoCoQleQjhHBNXuWIP6bvJEnC6wJyWEBQl6EsGTZcrAPChivW1cbeKOlLwxXPjycxPDreyTVGiQ X-Received: by 10.112.184.197 with SMTP id ew5mr6141931lbc.0.1410723289364; Sun, 14 Sep 2014 12:34:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.133 with SMTP id q5ls309615laj.80.gmail; Sun, 14 Sep 2014 12:34:48 -0700 (PDT) X-Received: by 10.112.150.106 with SMTP id uh10mr21875631lbb.11.1410723288844; Sun, 14 Sep 2014 12:34:48 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by mx.google.com with ESMTPS id a9si16158319lak.39.2014.09.14.12.34.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 14 Sep 2014 12:34:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by mail-lb0-f175.google.com with SMTP id v6so3415215lbi.34 for ; Sun, 14 Sep 2014 12:34:48 -0700 (PDT) X-Received: by 10.112.62.200 with SMTP id a8mr21898605lbs.34.1410723288533; Sun, 14 Sep 2014 12:34:48 -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.112.130.169 with SMTP id of9csp113015lbb; Sun, 14 Sep 2014 12:34:48 -0700 (PDT) X-Received: by 10.112.135.230 with SMTP id pv6mr3079040lbb.105.1410723288148; Sun, 14 Sep 2014 12:34:48 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id mi6si16107649lbb.81.2014.09.14.12.34.47 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 14 Sep 2014 12:34:48 -0700 (PDT) Received-SPF: none (google.com: pm215@archaic.org.uk does not designate permitted sender hosts) client-ip=81.2.115.146; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1XTFYN-0004cH-U7; Sun, 14 Sep 2014 20:33:43 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org Subject: [PATCH 2/4] hw/intc/imx_avic.c: Remove unused function imx_avic_set_prio() Date: Sun, 14 Sep 2014 20:33:41 +0100 Message-Id: <1410723223-17711-3-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1410723223-17711-1-git-send-email-peter.maydell@linaro.org> References: <1410723223-17711-1-git-send-email-peter.maydell@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) 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: , The function imx_avic_set_prio() is unused; delete it. Signed-off-by: Peter Maydell --- hw/intc/imx_avic.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/hw/intc/imx_avic.c b/hw/intc/imx_avic.c index ec5f9ad..e48f66c 100644 --- a/hw/intc/imx_avic.c +++ b/hw/intc/imx_avic.c @@ -97,15 +97,6 @@ static inline int imx_avic_prio(IMXAVICState *s, int irq) return 0xf & (s->prio[word] >> part); } -static inline void imx_avic_set_prio(IMXAVICState *s, int irq, int prio) -{ - uint32_t word = irq / PRIO_PER_WORD; - uint32_t part = 4 * (irq % PRIO_PER_WORD); - uint32_t mask = ~(0xf << part); - s->prio[word] &= mask; - s->prio[word] |= prio << part; -} - /* Update interrupts. */ static void imx_avic_update(IMXAVICState *s) {