.. | .. |
---|
159 | 159 | /* Per instance controls for this edac_device */ |
---|
160 | 160 | int log_ue; /* boolean for logging UEs */ |
---|
161 | 161 | int log_ce; /* boolean for logging CEs */ |
---|
162 | | - int panic_on_ce; /* boolean for panic'ing on an CE */ |
---|
163 | 162 | int panic_on_ue; /* boolean for panic'ing on an UE */ |
---|
164 | 163 | unsigned poll_msec; /* number of milliseconds to poll interval */ |
---|
165 | 164 | unsigned long delay; /* number of jiffies for poll_msec */ |
---|
166 | | - bool defer_work; /* Create a deferrable work for polling */ |
---|
167 | 165 | |
---|
168 | 166 | /* Additional top controller level attributes, but specified |
---|
169 | 167 | * by the low level driver. |
---|
.. | .. |
---|
288 | 286 | extern struct edac_device_ctl_info *edac_device_del_device(struct device *dev); |
---|
289 | 287 | |
---|
290 | 288 | /** |
---|
291 | | - * edac_device_handle_ue(): |
---|
292 | | - * perform a common output and handling of an 'edac_dev' UE event |
---|
| 289 | + * Log correctable errors. |
---|
293 | 290 | * |
---|
294 | 291 | * @edac_dev: pointer to struct &edac_device_ctl_info |
---|
295 | | - * @inst_nr: number of the instance where the UE error happened |
---|
296 | | - * @block_nr: number of the block where the UE error happened |
---|
| 292 | + * @inst_nr: number of the instance where the CE error happened |
---|
| 293 | + * @count: Number of errors to log. |
---|
| 294 | + * @block_nr: number of the block where the CE error happened |
---|
297 | 295 | * @msg: message to be printed |
---|
298 | 296 | */ |
---|
299 | | -extern void edac_device_handle_ue(struct edac_device_ctl_info *edac_dev, |
---|
300 | | - int inst_nr, int block_nr, const char *msg); |
---|
| 297 | +void edac_device_handle_ce_count(struct edac_device_ctl_info *edac_dev, |
---|
| 298 | + unsigned int count, int inst_nr, int block_nr, |
---|
| 299 | + const char *msg); |
---|
| 300 | + |
---|
301 | 301 | /** |
---|
302 | | - * edac_device_handle_ce(): |
---|
303 | | - * perform a common output and handling of an 'edac_dev' CE event |
---|
| 302 | + * Log uncorrectable errors. |
---|
| 303 | + * |
---|
| 304 | + * @edac_dev: pointer to struct &edac_device_ctl_info |
---|
| 305 | + * @inst_nr: number of the instance where the CE error happened |
---|
| 306 | + * @count: Number of errors to log. |
---|
| 307 | + * @block_nr: number of the block where the CE error happened |
---|
| 308 | + * @msg: message to be printed |
---|
| 309 | + */ |
---|
| 310 | +void edac_device_handle_ue_count(struct edac_device_ctl_info *edac_dev, |
---|
| 311 | + unsigned int count, int inst_nr, int block_nr, |
---|
| 312 | + const char *msg); |
---|
| 313 | + |
---|
| 314 | +/** |
---|
| 315 | + * edac_device_handle_ce(): Log a single correctable error |
---|
304 | 316 | * |
---|
305 | 317 | * @edac_dev: pointer to struct &edac_device_ctl_info |
---|
306 | 318 | * @inst_nr: number of the instance where the CE error happened |
---|
307 | 319 | * @block_nr: number of the block where the CE error happened |
---|
308 | 320 | * @msg: message to be printed |
---|
309 | 321 | */ |
---|
310 | | -extern void edac_device_handle_ce(struct edac_device_ctl_info *edac_dev, |
---|
311 | | - int inst_nr, int block_nr, const char *msg); |
---|
| 322 | +static inline void |
---|
| 323 | +edac_device_handle_ce(struct edac_device_ctl_info *edac_dev, int inst_nr, |
---|
| 324 | + int block_nr, const char *msg) |
---|
| 325 | +{ |
---|
| 326 | + edac_device_handle_ce_count(edac_dev, 1, inst_nr, block_nr, msg); |
---|
| 327 | +} |
---|
| 328 | + |
---|
| 329 | +/** |
---|
| 330 | + * edac_device_handle_ue(): Log a single uncorrectable error |
---|
| 331 | + * |
---|
| 332 | + * @edac_dev: pointer to struct &edac_device_ctl_info |
---|
| 333 | + * @inst_nr: number of the instance where the UE error happened |
---|
| 334 | + * @block_nr: number of the block where the UE error happened |
---|
| 335 | + * @msg: message to be printed |
---|
| 336 | + */ |
---|
| 337 | +static inline void |
---|
| 338 | +edac_device_handle_ue(struct edac_device_ctl_info *edac_dev, int inst_nr, |
---|
| 339 | + int block_nr, const char *msg) |
---|
| 340 | +{ |
---|
| 341 | + edac_device_handle_ue_count(edac_dev, 1, inst_nr, block_nr, msg); |
---|
| 342 | +} |
---|
312 | 343 | |
---|
313 | 344 | /** |
---|
314 | 345 | * edac_device_alloc_index: Allocate a unique device index number |
---|
.. | .. |
---|
318 | 349 | */ |
---|
319 | 350 | extern int edac_device_alloc_index(void); |
---|
320 | 351 | extern const char *edac_layer_name[]; |
---|
321 | | - |
---|
322 | 352 | #endif |
---|