diff for duplicates of <4F671C64.5020803@linux.vnet.ibm.com> diff --git a/a/1.txt b/N1/1.txt index 08117c1..dbb1379 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -25,7 +25,7 @@ below.. > + > + mutex_lock(&cooling_cpuhotplug_lock); > + list_for_each_entry(hotplug_dev, &cooling_cpuhotplug_list, node) { -> + if (hotplug_dev && hotplug_dev->cool_dev == cdev) { +> + if (hotplug_dev && hotplug_dev->cool_dev = cdev) { > + *state = hotplug_dev->hotplug_state; > + ret = 0; > + break; @@ -54,21 +54,21 @@ Or is this code bound to a particular cpu? > + > + mutex_lock(&cooling_cpuhotplug_lock); > + list_for_each_entry(hotplug_dev, &cooling_cpuhotplug_list, node) -> + if (hotplug_dev && hotplug_dev->cool_dev == cdev) +> + if (hotplug_dev && hotplug_dev->cool_dev = cdev) > + break; > + > + mutex_unlock(&cooling_cpuhotplug_lock); > + if (!hotplug_dev || hotplug_dev->cool_dev != cdev) > + return -EINVAL; > + -> + if (hotplug_dev->hotplug_state == state) +> + if (hotplug_dev->hotplug_state = state) > + return 0; > + > + /* > + * This cooling device may be of type ACTIVE, so state field can > + * be 0 or 1 > + */ -> + if (state == 1) { +> + if (state = 1) { > + for_each_cpu(cpuid, hotplug_dev->allowed_cpus) { > + if (cpu_online(cpuid) && (cpuid != this_cpu)) @@ -79,7 +79,7 @@ get_online_cpus()/put_online_cpus() here? > + cpu_down(cpuid); > + } -> + } else if (state == 0) { +> + } else if (state = 0) { > + for_each_cpu(cpuid, hotplug_dev->allowed_cpus) { > + if (!cpu_online(cpuid) && (cpuid != this_cpu)) @@ -103,3 +103,9 @@ Same here. > + .set_cur_state = cpuhotplug_set_cur_state, > +}; > + + + +_______________________________________________ +lm-sensors mailing list +lm-sensors@lm-sensors.org +http://lists.lm-sensors.org/mailman/listinfo/lm-sensors diff --git a/a/content_digest b/N1/content_digest index d62dd2c..7626341 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,8 +1,8 @@ "ref\01332137864-12943-1-git-send-email-amit.kachhap@linaro.org\0" "ref\01332137864-12943-4-git-send-email-amit.kachhap@linaro.org\0" "From\0Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>\0" - "Subject\0Re: [PATCH V2 3/6] thermal: Add generic cpuhotplug cooling implementation\0" - "Date\0Mon, 19 Mar 2012 17:15:40 +0530\0" + "Subject\0Re: [lm-sensors] [PATCH V2 3/6] thermal: Add generic cpuhotplug cooling implementation\0" + "Date\0Mon, 19 Mar 2012 11:57:40 +0000\0" "To\0Amit Daniel Kachhap <amit.kachhap@linaro.org>\0" "Cc\0linux-samsung-soc@vger.kernel.org" linaro-dev@lists.linaro.org @@ -41,7 +41,7 @@ "> +\n" "> +\tmutex_lock(&cooling_cpuhotplug_lock);\n" "> +\tlist_for_each_entry(hotplug_dev, &cooling_cpuhotplug_list, node) {\n" - "> +\t\tif (hotplug_dev && hotplug_dev->cool_dev == cdev) {\n" + "> +\t\tif (hotplug_dev && hotplug_dev->cool_dev = cdev) {\n" "> +\t\t\t*state = hotplug_dev->hotplug_state;\n" "> +\t\t\tret = 0;\n" "> +\t\t\tbreak;\n" @@ -70,21 +70,21 @@ "> +\n" "> +\tmutex_lock(&cooling_cpuhotplug_lock);\n" "> +\tlist_for_each_entry(hotplug_dev, &cooling_cpuhotplug_list, node)\n" - "> +\t\tif (hotplug_dev && hotplug_dev->cool_dev == cdev)\n" + "> +\t\tif (hotplug_dev && hotplug_dev->cool_dev = cdev)\n" "> +\t\t\tbreak;\n" "> +\n" "> +\tmutex_unlock(&cooling_cpuhotplug_lock);\n" "> +\tif (!hotplug_dev || hotplug_dev->cool_dev != cdev)\n" "> +\t\treturn -EINVAL;\n" "> +\n" - "> +\tif (hotplug_dev->hotplug_state == state)\n" + "> +\tif (hotplug_dev->hotplug_state = state)\n" "> +\t\treturn 0;\n" "> +\n" "> +\t/*\n" "> +\t* This cooling device may be of type ACTIVE, so state field can\n" "> +\t* be 0 or 1\n" "> +\t*/\n" - "> +\tif (state == 1) {\n" + "> +\tif (state = 1) {\n" "> +\t\tfor_each_cpu(cpuid, hotplug_dev->allowed_cpus) {\n" "> +\t\t\tif (cpu_online(cpuid) && (cpuid != this_cpu))\n" "\n" @@ -95,7 +95,7 @@ "\n" "> +\t\t\t\tcpu_down(cpuid);\n" "> +\t\t}\n" - "> +\t} else if (state == 0) {\n" + "> +\t} else if (state = 0) {\n" "> +\t\tfor_each_cpu(cpuid, hotplug_dev->allowed_cpus) {\n" "> +\t\t\tif (!cpu_online(cpuid) && (cpuid != this_cpu))\n" "\n" @@ -118,6 +118,12 @@ "> +\t.get_cur_state = cpuhotplug_get_cur_state,\n" "> +\t.set_cur_state = cpuhotplug_set_cur_state,\n" "> +};\n" - > + + "> +\n" + "\n" + "\n" + "_______________________________________________\n" + "lm-sensors mailing list\n" + "lm-sensors@lm-sensors.org\n" + http://lists.lm-sensors.org/mailman/listinfo/lm-sensors -40eb60cd8917c7c48e45671713e9d46552dddd18946a37be052eb1b008b63609 +bfabe21dc90c010fad6805538e0b44205458c029e4c700a98cb91ea01293681f
diff --git a/a/content_digest b/N2/content_digest index d62dd2c..f1d3597 100644 --- a/a/content_digest +++ b/N2/content_digest @@ -4,13 +4,17 @@ "Subject\0Re: [PATCH V2 3/6] thermal: Add generic cpuhotplug cooling implementation\0" "Date\0Mon, 19 Mar 2012 17:15:40 +0530\0" "To\0Amit Daniel Kachhap <amit.kachhap@linaro.org>\0" - "Cc\0linux-samsung-soc@vger.kernel.org" - linaro-dev@lists.linaro.org - patches@linaro.org + "Cc\0linux-pm@lists.linux-foundation.org" + linux-samsung-soc@vger.kernel.org linux-kernel@vger.kernel.org - lm-sensors@lm-sensors.org + mjg59@srcf.ucam.org linux-acpi@vger.kernel.org - linux-pm@lists.linux-foundation.org + lenb@kernel.org + linaro-dev@lists.linaro.org + lm-sensors@lm-sensors.org + patches@linaro.org + eduardo.valentin@ti.com + durgadoss.r@intel.com " Paul E. McKenney <paulmck@linux.vnet.ibm.com>\0" "\00:1\0" "b\0" @@ -120,4 +124,4 @@ "> +};\n" > + -40eb60cd8917c7c48e45671713e9d46552dddd18946a37be052eb1b008b63609 +8a0f63ce9c944fac5a496bb016a53aaa3a07ed77bc17b8b1b0515e1c4a827927
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.