From: "Guo Ren (Alibaba DAMO Academy)" <[email protected]>

The rv64ilp32 abi is based on CONFIG_64BIT, but uses ILP32 for a
smaller cache & memory footprint. So, disable CSD_LOCK_WAIT_DEBUG
to get smaller csd struct.

Signed-off-by: Guo Ren (Alibaba DAMO Academy) <[email protected]>
---
 include/linux/smp_types.h | 2 +-
 lib/Kconfig.debug         | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/smp_types.h b/include/linux/smp_types.h
index 2e8461af8df6..5912b694059f 100644
--- a/include/linux/smp_types.h
+++ b/include/linux/smp_types.h
@@ -61,7 +61,7 @@ struct __call_single_node {
                unsigned int    u_flags;
                atomic_t        a_flags;
        };
-#ifdef CONFIG_64BIT
+#if BITS_PER_LONG == 64
        u16 src, dst;
 #endif
 };
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 1af972a92d06..f55f0ded826c 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1613,6 +1613,7 @@ config CSD_LOCK_WAIT_DEBUG
        depends on DEBUG_KERNEL
        depends on SMP
        depends on 64BIT
+       depends on !ABI_RV64ILP32
        default n
        help
          This option enables debug prints when CPUs are slow to respond
-- 
2.40.1


Reply via email to