|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 1/5] xen/perfc: Drop arch_perfc_{gather,reset}()
On Thu, 2 Jan 2025, Andrew Cooper wrote:
> These were only ever used by the IA64 port, which was droped in commit
> 570c311ca2c7 ("remove ia64").
>
> Remove them, and clean up the arm/x86 stub headers.
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
> ---
> CC: Jan Beulich <JBeulich@xxxxxxxx>
> CC: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> CC: Stefano Stabellini <sstabellini@xxxxxxxxxx>
> CC: Julien Grall <julien@xxxxxxx>
> CC: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
> CC: Bertrand Marquis <bertrand.marquis@xxxxxxx>
> CC: Michal Orzel <michal.orzel@xxxxxxx>
> CC: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
> CC: Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>
> ---
> xen/arch/arm/include/asm/perfc.h | 21 ---------------------
> xen/arch/x86/include/asm/perfc.h | 12 ------------
> xen/common/perfc.c | 6 ------
> 3 files changed, 39 deletions(-)
> delete mode 100644 xen/arch/arm/include/asm/perfc.h
> delete mode 100644 xen/arch/x86/include/asm/perfc.h
>
> diff --git a/xen/arch/arm/include/asm/perfc.h
> b/xen/arch/arm/include/asm/perfc.h
> deleted file mode 100644
> index 95c4b2b6b7bf..000000000000
> --- a/xen/arch/arm/include/asm/perfc.h
> +++ /dev/null
> @@ -1,21 +0,0 @@
> -#ifndef __ASM_PERFC_H__
> -#define __ASM_PERFC_H__
> -
> -static inline void arch_perfc_reset(void)
> -{
> -}
> -
> -static inline void arch_perfc_gather(void)
> -{
> -}
> -
> -#endif
> -
> -/*
> - * Local variables:
> - * mode: C
> - * c-file-style: "BSD"
> - * c-basic-offset: 4
> - * indent-tabs-mode: nil
> - * End:
> - */
> diff --git a/xen/arch/x86/include/asm/perfc.h
> b/xen/arch/x86/include/asm/perfc.h
> deleted file mode 100644
> index a1a591e803a6..000000000000
> --- a/xen/arch/x86/include/asm/perfc.h
> +++ /dev/null
> @@ -1,12 +0,0 @@
> -#ifndef __ASM_PERFC_H__
> -#define __ASM_PERFC_H__
> -
> -static inline void arch_perfc_reset(void)
> -{
> -}
> -
> -static inline void arch_perfc_gather(void)
> -{
> -}
> -
> -#endif
> diff --git a/xen/common/perfc.c b/xen/common/perfc.c
> index 80480aa7766d..ed4dba36f1bc 100644
> --- a/xen/common/perfc.c
> +++ b/xen/common/perfc.c
> @@ -8,7 +8,6 @@
> #include <xen/mm.h>
> #include <xen/guest_access.h>
> #include <public/sysctl.h>
> -#include <asm/perfc.h>
>
> #define PERFCOUNTER( var, name ) { name, TYPE_SINGLE, 0 },
> #define PERFCOUNTER_ARRAY( var, name, size ) { name, TYPE_ARRAY, size },
> @@ -148,8 +147,6 @@ void cf_check perfc_reset(unsigned char key)
> break;
> }
> }
> -
> - arch_perfc_reset();
> }
>
> static struct xen_sysctl_perfc_desc perfc_d[NR_PERFCTRS];
> @@ -199,9 +196,6 @@ static int
> perfc_copy_info(XEN_GUEST_HANDLE_64(xen_sysctl_perfc_desc_t) desc,
> if ( perfc_vals == NULL )
> return -ENOMEM;
>
> - /* Architecture may fill counters from hardware. */
> - arch_perfc_gather();
> -
> /* We gather the counts together every time. */
> for ( i = j = v = 0; i < NR_PERFCTRS; i++ )
> {
> --
> 2.39.5
>
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |