Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210986
b: refs/heads/master
c: f6aeccd
h: refs/heads/master
v: v3
  • Loading branch information
Jan Beulich authored and Guenter Roeck committed Sep 24, 2010
1 parent 4993b87 commit d95e192
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: a46590533ad7b0f3f640732081d7e1658145c0ba
refs/heads/master: f6aeccdb96fc0555e939dd507702922f07dcbcbb
10 changes: 3 additions & 7 deletions trunk/drivers/hwmon/pkgtemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,10 @@ static int __cpuinit pkgtemp_device_add(unsigned int cpu)
int err;
struct platform_device *pdev;
struct pdev_entry *pdev_entry;
#ifdef CONFIG_SMP
struct cpuinfo_x86 *c = &cpu_data(cpu);
#endif

if (!cpu_has(c, X86_FEATURE_PTS))
return 0;

mutex_lock(&pdev_list_mutex);

Expand Down Expand Up @@ -403,11 +404,6 @@ static int __init pkgtemp_init(void)
goto exit;

for_each_online_cpu(i) {
struct cpuinfo_x86 *c = &cpu_data(i);

if (!cpu_has(c, X86_FEATURE_PTS))
continue;

err = pkgtemp_device_add(i);
if (err)
goto exit_devices_unreg;
Expand Down

0 comments on commit d95e192

Please sign in to comment.