File tree Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 53
53
54
54
#include "internal.h"
55
55
56
- static DEFINE_MUTEX (mce_log_mutex );
57
-
58
56
/* sysfs synchronization */
59
57
static DEFINE_MUTEX (mce_sysfs_mutex );
60
58
@@ -156,14 +154,7 @@ void mce_log(struct mce *m)
156
154
if (!mce_gen_pool_add (m ))
157
155
irq_work_queue (& mce_irq_work );
158
156
}
159
-
160
- void mce_inject_log (struct mce * m )
161
- {
162
- mutex_lock (& mce_log_mutex );
163
- mce_log (m );
164
- mutex_unlock (& mce_log_mutex );
165
- }
166
- EXPORT_SYMBOL_GPL (mce_inject_log );
157
+ EXPORT_SYMBOL_GPL (mce_log );
167
158
168
159
static struct notifier_block mce_srao_nb ;
169
160
Original file line number Diff line number Diff line change @@ -494,7 +494,7 @@ static void do_inject(void)
494
494
i_mce .status |= MCI_STATUS_SYNDV ;
495
495
496
496
if (inj_type == SW_INJ ) {
497
- mce_inject_log (& i_mce );
497
+ mce_log (& i_mce );
498
498
return ;
499
499
}
500
500
Original file line number Diff line number Diff line change @@ -84,8 +84,6 @@ static inline int apei_clear_mce(u64 record_id)
84
84
}
85
85
#endif
86
86
87
- void mce_inject_log (struct mce * m );
88
-
89
87
/*
90
88
* We consider records to be equivalent if bank+status+addr+misc all match.
91
89
* This is only used when the system is going down because of a fatal error
You can’t perform that action at this time.
0 commit comments