Re: [PATCH v5 07/17] arm64: cpufeature: handle conflicts based on capability

From
Amit Kachhap <hidden>
Date
2020-03-02 09:30:06
Reply to
Catalin Marinas, 2020-02-28

On 2/28/20 11:48 PM, Catalin Marinas wrote:
On Mon, Feb 17, 2020 at 02:57:38PM +0530, Amit Daniel Kachhap wrote:
quoted
diff --git a/arch/arm64/include/asm/cpufeature.h b/arch/arm64/include/asm/cpufeature.h
index 8c80483..1e88aee 100644
--- a/arch/arm64/include/asm/cpufeature.h
+++ b/arch/arm64/include/asm/cpufeature.h
@@ -352,6 +360,12 @@ cpucap_late_cpu_permitted(const struct arm64_cpu_capabilities *cap)
  	return !!(cap->type & ARM64_CPUCAP_PERMITTED_FOR_LATE_CPU);
  }
  
+static inline bool
+cpucap_panic_on_conflict(const struct arm64_cpu_capabilities *cap)
+{
+	return !!(cap->type & ARM64_CPUCAP_PANIC_ON_CONFLICT);
+}
Does this need to be in the header file? If not, please move it to
cpufeature.c (and drop 'inline' if moved).
Actually there are similar functions in cpufeature.h such as
cpucap_late_cpu_permitted, cpucap_late_cpu_optional etc in the
file cpufeature.h so done this way.

But yes all these functions are consumed only in cpufeature.c so can be moved there. I can send as a cleanup patch.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (32 messages) 32 messages, 5 authors, last reply 2020-03-04
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help