From ce1091aa55574dd1aeff0ca32d51d3d309dc5698 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 15 Jul 2015 22:43:48 +0200 Subject: [PATCH] Documentation: x86: Move PERCPU_SIZE_SHIFT out of documentation scope This macro is not part of the per-cpu subsystem interface. Silence the doxygen warning about lacking documentation. No functional changes. Signed-off-by: Jan Kiszka --- hypervisor/arch/x86/include/asm/percpu.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hypervisor/arch/x86/include/asm/percpu.h b/hypervisor/arch/x86/include/asm/percpu.h index 654ef1d..d3e33fe 100644 --- a/hypervisor/arch/x86/include/asm/percpu.h +++ b/hypervisor/arch/x86/include/asm/percpu.h @@ -32,6 +32,10 @@ #include #include +/* Round up sizeof(struct per_cpu) to the next power of two. */ +#define PERCPU_SIZE_SHIFT \ + (BITS_PER_LONG - __builtin_clzl(sizeof(struct per_cpu) - 1)) + /** * @defgroup Per-CPU Per-CPU Subsystem * @@ -160,10 +164,6 @@ struct per_cpu { }; } __attribute__((aligned(PAGE_SIZE))); -/* Round up sizeof(struct per_cpu) to the next power of two. */ -#define PERCPU_SIZE_SHIFT \ - (BITS_PER_LONG - __builtin_clzl(sizeof(struct per_cpu) - 1)) - /** * Define CPU-local accessor for a per-CPU field. * @param field Field name. -- 2.39.2