Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75815
b: refs/heads/master
c: 542eb75
h: refs/heads/master
i:
  75813: b954f1b
  75811: 51e2787
  75807: 2f4ca65
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent 2e2acfb commit 728d317
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: a521cf209c6e7042f85b2c5b16da3ffa8004fb7b
refs/heads/master: 542eb75a27616bdde95c8d3764e0ab703579f8b5
9 changes: 5 additions & 4 deletions trunk/arch/x86/kernel/cpu/mcheck/mce_amd_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,10 +432,9 @@ static __cpuinit int allocate_threshold_blocks(unsigned int cpu,
else
per_cpu(threshold_banks, cpu)[bank]->blocks = b;

kobject_set_name(&b->kobj, "misc%i", block);
b->kobj.parent = per_cpu(threshold_banks, cpu)[bank]->kobj;
b->kobj.ktype = &threshold_ktype;
err = kobject_register(&b->kobj);
err = kobject_init_and_add(&b->kobj, &threshold_ktype,
per_cpu(threshold_banks, cpu)[bank]->kobj,
"misc%i", block);
if (err)
goto out_free;
recurse:
Expand All @@ -451,6 +450,8 @@ static __cpuinit int allocate_threshold_blocks(unsigned int cpu,
if (err)
goto out_free;

kobject_uevent(&b->kobj, KOBJ_ADD);

return err;

out_free:
Expand Down

0 comments on commit 728d317

Please sign in to comment.