From patchwork Thu Feb 2 20:42:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 93139 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp291336qgi; Thu, 2 Feb 2017 12:45:32 -0800 (PST) X-Received: by 10.107.6.215 with SMTP id f84mr8035336ioi.210.1486068332661; Thu, 02 Feb 2017 12:45:32 -0800 (PST) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id 204si1964362itv.80.2017.02.02.12.45.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Feb 2017 12:45:32 -0800 (PST) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZODn-00062J-Qu; Thu, 02 Feb 2017 20:43:11 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZODm-00062D-LP for xen-devel@lists.xen.org; Thu, 02 Feb 2017 20:43:10 +0000 Received: from [85.158.143.35] by server-8.bemta-6.messagelabs.com id C1/A2-21675-DD993985; Thu, 02 Feb 2017 20:43:09 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPLMWRWlGSWpSXmKPExsVysyfVTffuzMk RBpseC1gs+biYxYHR4+ju30wBjFGsmXlJ+RUJrBkXr95jLjioVfFk/ifGBsaHil2MXBxCApsZ JR5PnssI4ZxmlFg49xxLFyMnB5uApsSdz5+YQGwRAWmJa58vgxUxCzxllJj+ooEZJCEMVNTeu YYVxGYRUJV4MqkfqIGDg1fAReL9QwWQsISAnMTJY5NZJzByLmBkWMWoUZxaVJZapGtsoJdUlJ meUZKbmJmja2hgppebWlycmJ6ak5hUrJecn7uJEegxBiDYwfh3beAhRkkOJiVR3ilakyOE+JL yUyozEosz4otKc1KLDzHKcHAoSfBOmQGUEyxKTU+tSMvMAYYOTFqCg0dJhHcrSJq3uCAxtzgz HSJ1ilFRSpx3C0hCACSRUZoH1wYL10uMslLCvIxAhwjxFKQW5WaWoMq/YhTnYFQS5l0GMoUnM 68EbvoroMVMQIt/Pp4EsrgkESEl1cDo/fhFw87cXY63tvjUfJ1x49NmRufc+A29ZtY1/df511 5MtE1Q6D/RwLPp0FXeJ/s4TnRm5bEkBx6ysKip0YpYrLmskY3dvaQ/YH9l6p4580T/75g//ZS a9qy3jsYKLYY+Rpdm6Ue5iWr2HCm8m7D1t75Zj7ruDdupJ5id3v81+Wyfs0eyPVqJpTgj0VCL uag4EQCtUPGJUgIAAA== X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-14.tower-21.messagelabs.com!1486068188!50065087!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.1.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 31746 invoked from network); 2 Feb 2017 20:43:08 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-14.tower-21.messagelabs.com with SMTP; 2 Feb 2017 20:43:08 -0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8CE691516; Thu, 2 Feb 2017 12:43:07 -0800 (PST) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.218.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 685963F477; Thu, 2 Feb 2017 12:43:06 -0800 (PST) From: Julien Grall To: xen-devel@lists.xen.org Date: Thu, 2 Feb 2017 20:42:44 +0000 Message-Id: <1486068164-24856-1-git-send-email-julien.grall@arm.com> X-Mailer: git-send-email 1.9.1 Cc: sstabellini@kernel.org, Wei Liu , George Dunlap , Dario Faggioli , Ian Jackson , Julien Grall Subject: [Xen-devel] [PATCH] Fix mispelling of length X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" There are quite a few usage of "lenght" instead of "length" in different part of the repo. Correct it once for all. Signed-off-by: Julien Grall Acked-by: Stefano Stabellini Acked-by: Wei Liu Acked-by: Dario Faggioli --- Cc: Ian Jackson Cc: Wei Liu Cc: George Dunlap Cc: Dario Faggioli Cc: Stefano Stabellini --- tools/libxl/libxl_json.c | 4 ++-- xen/common/sched_credit2.c | 16 ++++++++-------- xen/include/asm-arm/alternative.h | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tools/libxl/libxl_json.c b/tools/libxl/libxl_json.c index b60ae2b..0823b8c 100644 --- a/tools/libxl/libxl_json.c +++ b/tools/libxl/libxl_json.c @@ -69,8 +69,8 @@ struct libxl__yajl_ctx { # define DEBUG_GEN_FREE(ctx) ((void)0) # define DEBUG_GEN(ctx, type) ((void)0) # define DEBUG_GEN_VALUE(ctx, type, value) ((void)0) -# define DEBUG_GEN_STRING(ctx, value, lenght) ((void)0) -# define DEBUG_GEN_NUMBER(ctx, value, lenght) ((void)0) +# define DEBUG_GEN_STRING(ctx, value, length) ((void)0) +# define DEBUG_GEN_NUMBER(ctx, value, length) ((void)0) # define DEBUG_GEN_REPORT(ctx) ((void)0) #endif diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c index 93c6d32..84ee015 100644 --- a/xen/common/sched_credit2.c +++ b/xen/common/sched_credit2.c @@ -227,7 +227,7 @@ integer_param("sched_credit2_migrate_resist", opt_migrate_resist); * avg[0] = load*P * avg[i+1] = avg[i] + delta*load*P/W - delta*avg[i]/W, 0 <= delta <= W * - * where W is the lenght of the window, P the multiplier for transitiong into + * where W is the length of the window, P the multiplier for transitiong into * Q-format fixed point arithmetic and load is the instantaneous load of a * runqueue, which basically is the number of runnable vcpus there are on the * runqueue (for the meaning of the other terms, look at the doc comment to @@ -276,7 +276,7 @@ integer_param("sched_credit2_migrate_resist", opt_migrate_resist); #define LOADAVG_PRECISION_SHIFT_MIN (4) /* - * Both the lenght of the window and the number of fractional bits can be + * Both the length of the window and the number of fractional bits can be * decided with boot parameters. * * The length of the window is always expressed in nanoseconds. The actual @@ -574,7 +574,7 @@ __runq_elem(struct list_head *elem) * Track the runq load by gathering instantaneous load samples, and using * exponentially weighted moving average (EWMA) for the 'decaying'. * - * We consider a window of lenght W=2^(prv->load_window_shift) nsecs + * We consider a window of length W=2^(prv->load_window_shift) nsecs * (which takes LOADAVG_GRANULARITY_SHIFT into account). * * If load is the instantaneous load, the formula for EWMA looks as follows, @@ -591,7 +591,7 @@ __runq_elem(struct list_head *elem) * avgload = a*load + (1 - a)*avgload * * For determining a, we consider _when_ we are doing the load update, wrt - * the lenght of the window. We define delta as follows: + * the length of the window. We define delta as follows: * * delta = t - load_last_update * @@ -602,7 +602,7 @@ __runq_elem(struct list_head *elem) * There are two possible situations: * * a) delta <= W - * this means that, during the last window of lenght W, the runeuque load + * this means that, during the last window of length W, the runeuque load * was avgload for (W - detla) time, and load for delta time: * * |----------- W ---------| @@ -621,7 +621,7 @@ __runq_elem(struct list_head *elem) * 1 - a = 1 - (delta / W) = (W - delta) / W * * Which matches the above description of what happened in the last - * window of lenght W. + * window of length W. * * Note that this also means that the weight that we assign to both the * latest load sample, and to previous history, varies at each update. @@ -2540,7 +2540,7 @@ csched2_schedule( * The reset condition is "has a scheduler epoch come to an end?". * The way this is enforced is checking whether the vcpu at the top * of the runqueue has negative credits. This means the epochs have - * variable lenght, as in one epoch expores when: + * variable length, as in one epoch expores when: * 1) the vcpu at the top of the runqueue has executed for * around 10 ms (with default parameters); * 2) no other vcpu with higher credits wants to run. @@ -3043,7 +3043,7 @@ csched2_init(struct scheduler *ops) __func__, opt_load_window_shift); opt_load_window_shift = LOADAVG_WINDOW_SHIFT; } - printk(XENLOG_INFO "load tracking window lenght %llu ns\n", + printk(XENLOG_INFO "load tracking window length %llu ns\n", 1ULL << opt_load_window_shift); /* Basically no CPU information is available at this point; just diff --git a/xen/include/asm-arm/alternative.h b/xen/include/asm-arm/alternative.h index 6851217..9dcdcfb 100644 --- a/xen/include/asm-arm/alternative.h +++ b/xen/include/asm-arm/alternative.h @@ -160,7 +160,7 @@ static inline void apply_alternatives_all(void) { } -static inline int apply_alternatives(void *start, size_t lenght) +static inline int apply_alternatives(void *start, size_t length) { return 0; }