]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/platform/uv/BAU: Cleanup bau_operations declaration and instances
authorAndrew Banman <abanman@hpe.com>
Thu, 9 Mar 2017 16:42:11 +0000 (10:42 -0600)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Thu, 18 May 2017 18:41:23 +0000 (11:41 -0700)
commit7f378029e92b7c8ecf54780e54d8210b976ef87e
tree67235e56bf0076ab9713f69232608fd2021d7cf4
parent2223273994412219a3d1275c093e4d110fd4a5c8
x86/platform/uv/BAU: Cleanup bau_operations declaration and instances

Orabug: 25920237

Move the bau_operations declaration after bau struct declarations so the
bau structs can be referenced when adding new functions to
bau_operations. That way we avoid forward declarations of the bau
structs.

Likewise, move uv*_bau_ops structs down to avoid forward declarations of
new functions defined in the same file. Declare these structs __initconst
since they are only used during initialization. Similarly, declare the
bau_operations ops instance __ro_after_init as it is read-only after
initialization.

This is a preparatory patch for adding wait_completion to bau_operations.

Signed-off-by: Andrew Banman <abanman@hpe.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Mike Travis <mike.travis@hpe.com>
Cc: sivanich@hpe.com
Cc: rja@hpe.com
Cc: akpm@linux-foundation.org
Link: http://lkml.kernel.org/r/1489077734-111753-4-git-send-email-abanman@hpe.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
(cherry picked from commit 8e3b21b6dbf0318d5b3a598572acc23f07189c40)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
arch/x86/include/asm/uv/uv_bau.h
arch/x86/platform/uv/tlb_uv.c