[PATCH] coretemp: don't use kernel assigned CPU number as platform device ID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



... as that has the potential to conflict with (particularly soft) CPU
hot removal and re-adding.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

---
 drivers/hwmon/coretemp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 3.1-rc7-coretemp.orig/drivers/hwmon/coretemp.c
+++ 3.1-rc7-coretemp/drivers/hwmon/coretemp.c
@@ -724,7 +724,7 @@ static int __cpuinit coretemp_device_add
 
 	mutex_lock(&pdev_list_mutex);
 
-	pdev = platform_device_alloc(DRVNAME, cpu);
+	pdev = platform_device_alloc(DRVNAME, TO_PHYS_ID(cpu));
 	if (!pdev) {
 		err = -ENOMEM;
 		pr_err("Device allocation failed\n");




_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux