[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT PATCH v3 4/4] plat/xen/hypervisor.c: Remove unused parameter


  • To: radunicolau102@xxxxxxxxx, minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Mon, 3 Dec 2018 14:44:46 +0200
  • Delivery-date: Mon, 03 Dec 2018 12:44:52 +0000
  • Ironport-phdr: 9a23:07iAoRIE2V5wFIxQg9mcpTZWNBhigK39O0sv0rFitYgeLvzxwZ3uMQTl6Ol3ixeRBMOHs6IC07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffwZFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhjoZOT438G/ZicJ+g6xUrx2juxNxzJXZYJ2XOfdkYq/RYd0XSGhHU81MVyJBGIS8b44XAucfOuZYtJX9p1oIrRCjAwesGfvvyiJVjXLxwaI61P8hER3H3AwmBd4OtGnUrM3oNKoJTe+117PEzS3eb/xNwzv98o/IfwknrPqRXrxwadLcxVQgGg/YlFmdqozoMymL2ugTsWWX9eRtWfqyh2Motg19uDuiy8c2hoXXiI8YxErI+Th2zYorI9CzVVR1bsS+EJRKsiGXL452QsQ/TG52oCs60bgGuYKjfCgN1ZQn2wbTa/yZfIiM5RLuTPiRITJii3JkfLKznQq98VO6xu3kS8m7y0xGrjBCktXUt3AN0QLc6tSfR/dg8UqtxCyD2gPT5+1eP0w4i6jWJ4Qvz7Iok5ocq0XDHiv4mEXsi6+Wc10p9fSv6+T8frXmp5mcO5VwigHjKqQuh9eyDvgjMgQUR2ib5P+z2Kf5/U3+WLlKlOE5krHFsJDGIsQWvrS5DBVI3YY+7Ra/Diup0NMcnXYdMVJJZQ6Lg5byNlHBJfD3F/a/g1C2nDh3wPDGO6XrAo/RIXjbjLfhYbF95lZZyAoyy9Bf5pVUCqoYLP3uREDxqsLXDhsiPgywwubnE8l91pgEVWOAHKCZNrnesViS5uIgcKGwY9oPsTrgLfku4PrnkCZhw3cSeKCo2d0cb3X8VvFnJUSeej/gj8kMFU8OvxEiV6r6hVvEViRcNFioWKdpzTYgFIOgRaPeXp3l1LeGxzu6GNtSe3hbIluXV2/1fcOeXKFfO2qpPsZ9n2lcBvCaQIg72ET2uQ==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

Reviewed-by: Costin Lupu <costin.lupu@xxxxxxxxx>

On 11/24/18 1:23 PM, radunicolau102@xxxxxxxxx wrote:
> From: Radu Nicolau <radunicolau102@xxxxxxxxx>
> 
> Removed unused parameter cpu from macro active_evtchns
> 
> Signed-off-by: Radu Nicolau <radunicolau102@xxxxxxxxx>
> ---
>  plat/xen/hypervisor.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/plat/xen/hypervisor.c b/plat/xen/hypervisor.c
> index 8f8048a..c797dc6 100644
> --- a/plat/xen/hypervisor.c
> +++ b/plat/xen/hypervisor.c
> @@ -42,8 +42,7 @@
>  #include <uk/arch/lcpu.h>
>  #include <uk/arch/atomic.h>
>  
> -// TODO revisit: move to evtchn; why cpu param?
> -#define active_evtchns(cpu, sh, idx)                         \
> +#define active_evtchns(sh, idx)                              \
>       ((sh)->evtchn_pending[idx] & ~(sh)->evtchn_mask[idx])
>  
>  int in_callback;
> @@ -69,7 +68,7 @@ void do_hypervisor_callback(struct __regs *regs)
>               l1i = ukarch_ffsl(l1);
>               l1 &= ~(1UL << l1i);
>  
> -             while ((l2 = active_evtchns(cpu, s, l1i)) != 0) {
> +             while ((l2 = active_evtchns(s, l1i)) != 0) {
>                       l2i = ukarch_ffsl(l2);
>                       l2 &= ~(1UL << l2i);
>  
> 

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.