From patchwork Thu May 1 12:31:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 29494 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f70.google.com (mail-pa0-f70.google.com [209.85.220.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3EEB8203F3 for ; Thu, 1 May 2014 12:32:57 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id kq14sf14545043pab.9 for ; Thu, 01 May 2014 05:32:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:cc:subject :precedence:list-id:list-unsubscribe:list-post:list-help :list-subscribe:mime-version:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive :content-type:content-transfer-encoding; bh=N3yJ1h6N6tCBZVe84JqVWGGC2QZWzhSZCvh1yz8Sdk0=; b=LiBycIwxAp0oFK8J4gpN88p1beHnsGVqCSHXSW8YopDvj74p6gzwmlqOWziwtLjoyc +8lD+T0WX6LVTmCZWkSDsdjr9Szv7QdAh6N9H3ej4AAaZfVDgtJx+C5duEerhxvgnD1i HRJleXaFRTJc7OVp/6niXqy/5zYyKRp15HxbpLTqSLthISs6ZgCSbyq99oRsrddMx89J vFOmmrRbUM2fG0NiMxB11T1BcBbDtUV04GtzYGe0LR3j3FblkVJENNv84j9j0Ekoewm3 9X/Cv8acKTGM4pJ+xHNnNFHhrg4ZqBhoMynaKFYeDQIBL/mQuN8fKYyLW0B+mm5bvPRg NKDA== X-Gm-Message-State: ALoCoQnXECAkiETEL22BJ+YuJzhm8R+87lz8eW9tyW1i5pTLPoNYgeimfL53pWbN43Cs0fhjfSVd X-Received: by 10.66.192.232 with SMTP id hj8mr5374835pac.2.1398947576289; Thu, 01 May 2014 05:32:56 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.31.225 with SMTP id f88ls999209qgf.65.gmail; Thu, 01 May 2014 05:32:56 -0700 (PDT) X-Received: by 10.58.186.71 with SMTP id fi7mr90369vec.32.1398947576047; Thu, 01 May 2014 05:32:56 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id a19si6027816vcq.94.2014.05.01.05.32.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 May 2014 05:32:56 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id im17so3954851vcb.28 for ; Thu, 01 May 2014 05:32:56 -0700 (PDT) X-Received: by 10.52.181.132 with SMTP id dw4mr7760vdc.86.1398947575968; Thu, 01 May 2014 05:32:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp20947vcb; Thu, 1 May 2014 05:32:55 -0700 (PDT) X-Received: by 10.140.24.196 with SMTP id 62mr12441099qgr.45.1398947575440; Thu, 01 May 2014 05:32:55 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id c4si12547124qad.141.2014.05.01.05.32.54 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 01 May 2014 05:32:55 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wfq94-0008Ib-0k; Thu, 01 May 2014 12:31:22 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wfq92-0008IV-UF for xen-devel@lists.xenproject.org; Thu, 01 May 2014 12:31:21 +0000 Received: from [85.158.143.35:8409] by server-3.bemta-4.messagelabs.com id DC/28-13602-89E32635; Thu, 01 May 2014 12:31:20 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-5.tower-21.messagelabs.com!1398947479!2222388!1 X-Originating-IP: [74.125.83.49] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 18896 invoked from network); 1 May 2014 12:31:19 -0000 Received: from mail-ee0-f49.google.com (HELO mail-ee0-f49.google.com) (74.125.83.49) by server-5.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 1 May 2014 12:31:19 -0000 Received: by mail-ee0-f49.google.com with SMTP id e53so2222734eek.8 for ; Thu, 01 May 2014 05:31:18 -0700 (PDT) X-Received: by 10.15.54.6 with SMTP id s6mr9734273eew.4.1398947478685; Thu, 01 May 2014 05:31:18 -0700 (PDT) Received: from belegaer.uk.xensource.com ([185.25.64.249]) by mx.google.com with ESMTPSA id w12sm76019170eez.36.2014.05.01.05.31.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 May 2014 05:31:17 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Thu, 1 May 2014 13:31:15 +0100 Message-Id: <1398947475-10997-1-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH v2] xen/arm: vtimer: rename vcpu_domain_init into domain_vtimer_init X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: The current function name vcpu_domain_init doesn't reflect what the function does and might be misused. Rename it into domain_vtimer_init. Signed-off-by: Julien Grall --- Changes in v2: - By mistake I replaced an = by == --- xen/arch/arm/domain.c | 2 +- xen/arch/arm/vtimer.c | 2 +- xen/arch/arm/vtimer.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/arm/domain.c b/xen/arch/arm/domain.c index c47db4a..575a5a3 100644 --- a/xen/arch/arm/domain.c +++ b/xen/arch/arm/domain.c @@ -519,7 +519,7 @@ int arch_domain_create(struct domain *d, unsigned int domcr_flags) if ( (rc = domain_vgic_init(d)) != 0 ) goto fail; - if ( (rc = vcpu_domain_init(d)) != 0 ) + if ( (rc = domain_vtimer_init(d)) != 0 ) goto fail; if ( d->domain_id ) diff --git a/xen/arch/arm/vtimer.c b/xen/arch/arm/vtimer.c index c515e7e..f68d16a 100644 --- a/xen/arch/arm/vtimer.c +++ b/xen/arch/arm/vtimer.c @@ -44,7 +44,7 @@ static void virt_timer_expired(void *data) vgic_vcpu_inject_irq(t->v, t->irq, 1); } -int vcpu_domain_init(struct domain *d) +int domain_vtimer_init(struct domain *d) { d->arch.phys_timer_base.offset = NOW(); d->arch.virt_timer_base.offset = READ_SYSREG64(CNTPCT_EL0); diff --git a/xen/arch/arm/vtimer.h b/xen/arch/arm/vtimer.h index bcf910e..6d2e46e 100644 --- a/xen/arch/arm/vtimer.h +++ b/xen/arch/arm/vtimer.h @@ -20,7 +20,7 @@ #ifndef __ARCH_ARM_VTIMER_H__ #define __ARCH_ARM_VTIMER_H__ -extern int vcpu_domain_init(struct domain *d); +extern int domain_vtimer_init(struct domain *d); extern int vcpu_vtimer_init(struct vcpu *v); extern int vtimer_emulate(struct cpu_user_regs *regs, union hsr hsr); extern int virt_timer_save(struct vcpu *v);