From: Andrew Cooper Date: Sun, 29 Dec 2024 18:01:34 +0000 (+0000) Subject: xen/perfc: Trim includes X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e7ea1de7746c94f0e5349ab7bb3d236c5475eb4d;p=people%2Fandrewcoop%2Fxen.git 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 --- 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 /*