MIPS: Octeon: Fix wrong variable type in smp.c
PATCH 1/1 MIPS: Octeon: Fix wrong variable type in smp.c
Change cvmx_ciu_wdogx_t type to "union cvmx_ciu_wdogx".
--- arch/mips/cavium-octeon/smp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/mips/cavium-octeon/smp.c +1 -1
@@ -281,7 +281,7 @@ static void octeon_cpu_die(unsigned int cpu)#ifdef CONFIG_CAVIUM_OCTEON_WATCHDOG /* Disable the watchdog */ -cvmx_ciu_wdogx_t ciu_wdog; +union cvmx_ciu_wdogx ciu_wdog; ciu_wdog.u64 =cvmx_read_csr (CVMX_CIU_WDOGX (cpu)); ciu_wdog.s.mode =0 ;cvmx_write_csr (CVMX_CIU_WDOGX (cpu), ciu_wdog.u64);
Signature · 1 line
1.6.3.3
Quoted 12 lines · Yang Shi
Change
cvmx_ciu_wdogx_ttype to "unioncvmx_ciu_wdogx".Signed-off-by Yang Shi <[email protected]>--- arch/mips/cavium-octeon/smp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/mips/cavium-octeon/smp.c +0
-0
arch/mips/cavium-octeon/smp.c static void octeon_cpu_die(unsigned int cpu) · line 287
Quoted 8 lines
arch/mips/cavium-octeon/smp.c +1
-1@@ -281,7 +281,7 @@ static void octeon_cpu_die(unsigned int cpu)#ifdef CONFIG_CAVIUM_OCTEON_WATCHDOG /* Disable the watchdog */ -cvmx_ciu_wdogx_t ciu_wdog; +union cvmx_ciu_wdogx ciu_wdog; ciu_wdog.u64 =cvmx_read_csr (CVMX_CIU_WDOGX (cpu)); ciu_wdog.s.mode =0 ;cvmx_write_csr (CVMX_CIU_WDOGX (cpu), ciu_wdog.u64);
David,
I think this ifdef should be replaced by a notifier called from __cpu_die().
Ralf
Quoted 12 lines · Ralf Baechle
arch/mips/cavium-octeon/smp.c static void octeon_cpu_die(unsigned int cpu) · line 287
Quoted 9 lines
arch/mips/cavium-octeon/smp.c +1
-1@@ -281,7 +281,7 @@ static void octeon_cpu_die(unsigned int cpu)#ifdef CONFIG_CAVIUM_OCTEON_WATCHDOG /* Disable the watchdog */ -cvmx_ciu_wdogx_t ciu_wdog; +union cvmx_ciu_wdogx ciu_wdog; ciu_wdog.u64 =cvmx_read_csr (CVMX_CIU_WDOGX (cpu)); ciu_wdog.s.mode =0 ;cvmx_write_csr (CVMX_CIU_WDOGX (cpu), ciu_wdog.u64);David,
Quoted 2 lines
I think this ifdef should be replaced by a notifier called from
__cpu_die().
Since this is unused I'll just remove it for now.
Ralf
Quoted 15 lines · Ralf Baechle
Quoted 12 lines · Ralf Baechle
arch/mips/cavium-octeon/smp.c static void octeon_cpu_die(unsigned int cpu) · line 287
Quoted 10 lines
arch/mips/cavium-octeon/smp.c +1
-1@@ -281,7 +281,7 @@ static void octeon_cpu_die(unsigned int cpu)#ifdef CONFIG_CAVIUM_OCTEON_WATCHDOG /* Disable the watchdog */ -cvmx_ciu_wdogx_t ciu_wdog; +union cvmx_ciu_wdogx ciu_wdog; ciu_wdog.u64 =cvmx_read_csr (CVMX_CIU_WDOGX (cpu)); ciu_wdog.s.mode =0 ;cvmx_write_csr (CVMX_CIU_WDOGX (cpu), ciu_wdog.u64);David,
Quoted 6 lines
Quoted 3 lines
I think this ifdef should be replaced by a notifier called from
__cpu_die().Since this is unused I'll just remove it for now.
This breaks kernel build when HOTPLUG_CPU is enabled.
Regards,
Yang
Quoted 3 lines
Ralf