diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2011-12-04 09:12:09 -0500 |
---|---|---|
committer | Borislav Petkov <bp@amd64.org> | 2011-12-14 06:50:12 -0500 |
commit | 3653ada5d3e173489b3a466305687cb5c44b2ab1 (patch) | |
tree | b0533badd64709336e39715ad6df15e4ca449539 /drivers/edac/mce_amd.c | |
parent | dc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50 (diff) |
x86, mce: Add wrappers for registering on the decode chain
No functionality change, this is done so that in a follow-on patch all
queued-up MCEs can be decoded after registering on the chain.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/mce_amd.c')
-rw-r--r-- | drivers/edac/mce_amd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c index d0864d9c38ad..bd926ea2e00c 100644 --- a/drivers/edac/mce_amd.c +++ b/drivers/edac/mce_amd.c | |||
@@ -884,7 +884,7 @@ static int __init mce_amd_init(void) | |||
884 | 884 | ||
885 | pr_info("MCE: In-kernel MCE decoding enabled.\n"); | 885 | pr_info("MCE: In-kernel MCE decoding enabled.\n"); |
886 | 886 | ||
887 | atomic_notifier_chain_register(&x86_mce_decoder_chain, &amd_mce_dec_nb); | 887 | mce_register_decode_chain(&amd_mce_dec_nb); |
888 | 888 | ||
889 | return 0; | 889 | return 0; |
890 | } | 890 | } |
@@ -893,7 +893,7 @@ early_initcall(mce_amd_init); | |||
893 | #ifdef MODULE | 893 | #ifdef MODULE |
894 | static void __exit mce_amd_exit(void) | 894 | static void __exit mce_amd_exit(void) |
895 | { | 895 | { |
896 | atomic_notifier_chain_unregister(&x86_mce_decoder_chain, &amd_mce_dec_nb); | 896 | mce_unregister_decode_chain(&amd_mce_dec_nb); |
897 | kfree(fam_ops); | 897 | kfree(fam_ops); |
898 | } | 898 | } |
899 | 899 | ||