Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262355
b: refs/heads/master
c: b6a9501
h: refs/heads/master
i:
  262353: 7852fe9
  262351: 904774d
v: v3
  • Loading branch information
Huang Ying authored and Len Brown committed Jul 14, 2011
1 parent 93c89d1 commit 3939092
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 86cd47334b00b6aa9b5d0ebf389a6fe76f21c641
refs/heads/master: b6a9501658530d8b8374e37f1edb549039a8a260
8 changes: 8 additions & 0 deletions trunk/drivers/acpi/apei/ghes.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ struct ghes {
};
};

int ghes_disable;
module_param_named(disable, ghes_disable, bool, 0);

static int ghes_panic_timeout __read_mostly = 30;

/*
Expand Down Expand Up @@ -665,6 +668,11 @@ static int __init ghes_init(void)
return -EINVAL;
}

if (ghes_disable) {
pr_info(GHES_PFX "GHES is not enabled!\n");
return -EINVAL;
}

rc = ghes_ioremap_init();
if (rc)
goto err;
Expand Down
17 changes: 9 additions & 8 deletions trunk/drivers/acpi/apei/hest.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,17 @@ void __init acpi_hest_init(void)
goto err;
}

rc = apei_hest_parse(hest_parse_ghes_count, &ghes_count);
if (rc)
goto err;

rc = hest_ghes_dev_register(ghes_count);
if (!rc) {
pr_info(HEST_PFX "Table parsing has been initialized.\n");
return;
if (!ghes_disable) {
rc = apei_hest_parse(hest_parse_ghes_count, &ghes_count);
if (rc)
goto err;
rc = hest_ghes_dev_register(ghes_count);
if (rc)
goto err;
}

pr_info(HEST_PFX "Table parsing has been initialized.\n");
return;
err:
hest_disable = 1;
}
1 change: 1 addition & 0 deletions trunk/include/acpi/apei.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

extern int hest_disable;
extern int erst_disable;
extern int ghes_disable;

#ifdef CONFIG_ACPI_APEI
void __init acpi_hest_init(void);
Expand Down

0 comments on commit 3939092

Please sign in to comment.