From e7ea1de7746c94f0e5349ab7bb3d236c5475eb4d Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Sun, 29 Dec 2024 18:01:34 +0000 Subject: [PATCH] xen/perfc: Trim includes This is mostly for the removal of xen/lib.h and xen/smp.h from perfc.h. All that is needed is xen/macros.h. Trim and sort the includes for perfc.c too. There's no need for smp.h, keyhandler.h or mm.h, but cpumask.h is needed. Signed-off-by: Andrew Cooper Reviewed-by: Stefano Stabellini --- xen/common/perfc.c | 9 ++++----- xen/include/xen/perfc.h | 3 +-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/xen/common/perfc.c b/xen/common/perfc.c index 8c967ab900..b748c8af85 100644 --- a/xen/common/perfc.c +++ b/xen/common/perfc.c @@ -1,13 +1,12 @@ +#include #include +#include #include -#include -#include #include -#include #include -#include -#include +#include + #include #define PERFCOUNTER( var, name ) { name, TYPE_SINGLE, 0 }, diff --git a/xen/include/xen/perfc.h b/xen/include/xen/perfc.h index f9009dc388..324b476655 100644 --- a/xen/include/xen/perfc.h +++ b/xen/include/xen/perfc.h @@ -3,8 +3,7 @@ #ifdef CONFIG_PERF_COUNTERS -#include -#include +#include #include /* -- 2.39.5