diff mbox series

EDAC, pnd2: set MCE_PRIO_EDAC priority for pnd2_mce_dec notifier

Message ID 20200610065846.3626-1-zhenzhong.duan@gmail.com (mailing list archive)
State New, archived
Headers show
Series EDAC, pnd2: set MCE_PRIO_EDAC priority for pnd2_mce_dec notifier | expand

Commit Message

Zhenzhong Duan June 10, 2020, 6:58 a.m. UTC
...or else it has MCE_PRIO_LOWEST priority by default.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@gmail.com>
---
 drivers/edac/pnd2_edac.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Luck, Tony June 10, 2020, 5:16 p.m. UTC | #1
On Wed, Jun 10, 2020 at 02:58:45PM +0800, Zhenzhong Duan wrote:
> ...or else it has MCE_PRIO_LOWEST priority by default.
> 
> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@gmail.com>
> ---
>  drivers/edac/pnd2_edac.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/edac/pnd2_edac.c b/drivers/edac/pnd2_edac.c
> index bc47328..368fae3 100644
> --- a/drivers/edac/pnd2_edac.c
> +++ b/drivers/edac/pnd2_edac.c
> @@ -1434,6 +1434,7 @@ static int pnd2_mce_check_error(struct notifier_block *nb, unsigned long val, vo
>  
>  static struct notifier_block pnd2_mce_dec = {
>  	.notifier_call	= pnd2_mce_check_error,
> +	.priority	= MCE_PRIO_EDAC,
>  };
>  
>  #ifdef CONFIG_EDAC_DEBUG
> -- 

Looks OK. I'll queue this next week (after Linus releases v5.8-rc1). It should
be merged into v5.9

Thanks

-Tony
diff mbox series

Patch

diff --git a/drivers/edac/pnd2_edac.c b/drivers/edac/pnd2_edac.c
index bc47328..368fae3 100644
--- a/drivers/edac/pnd2_edac.c
+++ b/drivers/edac/pnd2_edac.c
@@ -1434,6 +1434,7 @@  static int pnd2_mce_check_error(struct notifier_block *nb, unsigned long val, vo
 
 static struct notifier_block pnd2_mce_dec = {
 	.notifier_call	= pnd2_mce_check_error,
+	.priority	= MCE_PRIO_EDAC,
 };
 
 #ifdef CONFIG_EDAC_DEBUG