Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298056
b: refs/heads/master
c: ee49089
h: refs/heads/master
v: v3
  • Loading branch information
Chen Gong authored and Len Brown committed Mar 30, 2012
1 parent d8ef406 commit c0f0c59
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 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: 185210cc754754c2504afcef9d1c9cd4b8761a9c
refs/heads/master: ee49089dc7d9fc78db51e18f4fba68e88edc49a4
15 changes: 12 additions & 3 deletions trunk/drivers/acpi/apei/einj.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ struct vendor_error_type_extension {
u8 reserved[3];
};

static u32 notrigger;

static u32 vendor_flags;
static struct debugfs_blob_wrapper vendor_blob;
static char vendor_dev[64];
Expand Down Expand Up @@ -496,9 +498,11 @@ static int __einj_error_inject(u32 type, u64 param1, u64 param2)
if (rc)
return rc;
trigger_paddr = apei_exec_ctx_get_output(&ctx);
rc = __einj_error_trigger(trigger_paddr, type, param1, param2);
if (rc)
return rc;
if (notrigger == 0) {
rc = __einj_error_trigger(trigger_paddr, type, param1, param2);
if (rc)
return rc;
}
rc = apei_exec_run_optional(&ctx, ACPI_EINJ_END_OPERATION);

return rc;
Expand Down Expand Up @@ -700,6 +704,11 @@ static int __init einj_init(void)
einj_debug_dir, &error_param2);
if (!fentry)
goto err_unmap;

fentry = debugfs_create_x32("notrigger", S_IRUSR | S_IWUSR,
einj_debug_dir, &notrigger);
if (!fentry)
goto err_unmap;
}

if (vendor_dev[0]) {
Expand Down

0 comments on commit c0f0c59

Please sign in to comment.