diff mbox

[1/3] sparc64: use generic rwsem spinlocks rt

Message ID 1387166853-10782-2-git-send-email-allen.pais@oracle.com
State Not Applicable
Delegated to: David Miller
Headers show

Commit Message

Allen Dec. 16, 2013, 4:07 a.m. UTC
Signed-off-by: Allen Pais <allen.pais@oracle.com>
---
 arch/sparc/Kconfig |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

Sebastian Andrzej Siewior Dec. 16, 2013, 10:26 a.m. UTC | #1
On 12/16/2013 05:07 AM, Allen Pais wrote:
> --- a/arch/sparc/Kconfig
> +++ b/arch/sparc/Kconfig
> @@ -179,12 +179,10 @@ config NR_CPUS
>  source kernel/Kconfig.hz
>  
>  config RWSEM_GENERIC_SPINLOCK
> -	bool
> -	default y if SPARC32
> +	def_bool PREEMPT_RT_FULL
>  
>  config RWSEM_XCHGADD_ALGORITHM
> -	bool
> -	default y if SPARC64
> +	def_bool !RWSEM_GENERIC_SPINLOCK && !PREEMPT_RT_FULL
>  
>  config GENERIC_HWEIGHT
>  	bool


davem won't apply this because the PREEMPT_RT symbol is not available
upstream. I referred to patch two+.

Sebastian
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Allen Dec. 16, 2013, 11:01 a.m. UTC | #2
> 
> davem won't apply this because the PREEMPT_RT symbol is not available
> upstream. I referred to patch two+.

Yes, I thought it'd be good get a  review from him.

- Allen

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index 6787bd3..554995d 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -179,12 +179,10 @@  config NR_CPUS
 source kernel/Kconfig.hz
 
 config RWSEM_GENERIC_SPINLOCK
-	bool
-	default y if SPARC32
+	def_bool PREEMPT_RT_FULL
 
 config RWSEM_XCHGADD_ALGORITHM
-	bool
-	default y if SPARC64
+	def_bool !RWSEM_GENERIC_SPINLOCK && !PREEMPT_RT_FULL
 
 config GENERIC_HWEIGHT
 	bool