cec.c (5cc6b16ea1313d05956b55e83a1f753c604282a8) | cec.c (d0e375e8f26edd2e577e3afa9d952f91037cbd87) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2#include <linux/mm.h> 3#include <linux/gfp.h> 4#include <linux/kernel.h> 5#include <linux/workqueue.h> 6 7#include <asm/mce.h> 8 --- 490 unchanged lines hidden (view full) --- 499 return; 500 501 ce_arr.array = (void *)get_zeroed_page(GFP_KERNEL); 502 if (!ce_arr.array) { 503 pr_err("Error allocating CE array page!\n"); 504 return; 505 } 506 | 1// SPDX-License-Identifier: GPL-2.0 2#include <linux/mm.h> 3#include <linux/gfp.h> 4#include <linux/kernel.h> 5#include <linux/workqueue.h> 6 7#include <asm/mce.h> 8 --- 490 unchanged lines hidden (view full) --- 499 return; 500 501 ce_arr.array = (void *)get_zeroed_page(GFP_KERNEL); 502 if (!ce_arr.array) { 503 pr_err("Error allocating CE array page!\n"); 504 return; 505 } 506 |
507 if (create_debugfs_nodes()) | 507 if (create_debugfs_nodes()) { 508 free_page((unsigned long)ce_arr.array); |
508 return; | 509 return; |
510 } |
|
509 510 INIT_DELAYED_WORK(&cec_work, cec_work_fn); 511 schedule_delayed_work(&cec_work, CEC_DECAY_DEFAULT_INTERVAL); 512 513 pr_info("Correctable Errors collector initialized.\n"); 514} 515 516int __init parse_cec_param(char *str) --- 14 unchanged lines hidden --- | 511 512 INIT_DELAYED_WORK(&cec_work, cec_work_fn); 513 schedule_delayed_work(&cec_work, CEC_DECAY_DEFAULT_INTERVAL); 514 515 pr_info("Correctable Errors collector initialized.\n"); 516} 517 518int __init parse_cec_param(char *str) --- 14 unchanged lines hidden --- |