diff mbox series

[1/5] MIPS: alchemy: cpu_all_mask is forbidden for clock event devices

Message ID 20181219070803.449981-2-manuel.lauss@gmail.com (mailing list archive)
State Accepted
Headers show
Series MIPS: Alchemy updates for 4.20+ | expand

Commit Message

Manuel Lauss Dec. 19, 2018, 7:07 a.m. UTC
change alchemy clock event device cpu_all_mask to cpu_possible_mask.
Gets rid of a warning, which then does the same substitution:
WARNING: CPU: 0 PID: 0 at kernel/time/clockevents.c:468 clockevents_register_device+0x130/0x140
rtcmatch2 cpumask == cpu_all_mask, using cpu_possible_mask instead

Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
---
 arch/mips/alchemy/common/time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul Burton Dec. 23, 2018, 4:16 p.m. UTC | #1
Hello,

Manuel Lauss wrote:
> change alchemy clock event device cpu_all_mask to cpu_possible_mask.
> Gets rid of a warning, which then does the same substitution:
> WARNING: CPU: 0 PID: 0 at kernel/time/clockevents.c:468 clockevents_register_device+0x130/0x140
> rtcmatch2 cpumask == cpu_all_mask, using cpu_possible_mask instead
> 
> Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>

Applied to mips-fixes.

Thanks,
    Paul

[ This message was auto-generated; if you believe anything is incorrect
  then please email paul.burton@mips.com to report it. ]
diff mbox series

Patch

diff --git a/arch/mips/alchemy/common/time.c b/arch/mips/alchemy/common/time.c
index ff4dbe3dee34..b0f949c907dd 100644
--- a/arch/mips/alchemy/common/time.c
+++ b/arch/mips/alchemy/common/time.c
@@ -82,7 +82,7 @@  static struct clock_event_device au1x_rtcmatch2_clockdev = {
 	.features	= CLOCK_EVT_FEAT_ONESHOT,
 	.rating		= 1500,
 	.set_next_event = au1x_rtcmatch2_set_next_event,
-	.cpumask	= cpu_all_mask,
+	.cpumask	= cpu_possible_mask,
 };
 
 static struct irqaction au1x_rtcmatch2_irqaction = {