aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-07-18 13:50:26 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-18 13:50:26 -0400
commit3f334c20811d2970cbe14dbd2db3c08da0220fe8 (patch)
tree823577e6c7cb2fddfa5330b02d1cb29281838207 /drivers/hwmon
parentc66bce9b655aac0869254dcaefd2365145477f53 (diff)
parent0b776b062843b63cb4c9acdfc092b2581be3c2f6 (diff)
Merge branch 'cpuinit_phase2' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux
Pull phase two of __cpuinit removal from Paul Gortmaker: "With the __cpuinit infrastructure removed earlier, this group of commits only removes the function/data tagging that was done with the various (now no-op) __cpuinit related prefixes. Now that the dust has settled with yesterday's v3.11-rc1, there hopefully shouldn't be any new users leaking back in tree, but I think we can leave the harmless no-op stubs there for a release as a courtesy to those who still have out of tree stuff and weren't paying attention. Although the commits are against the recent tag to allow for minor context refreshes for things like yesterday's v3.11-rc1~ slab content, the patches have been largely unchanged for weeks, aside from such trivial updates. For detail junkies, the largely boring and mostly irrelevant history of the patches can be viewed at: http://git.kernel.org/cgit/linux/kernel/git/paulg/cpuinit-delete.git If nothing else, I guess it does at least demonstrate the level of involvement required to shepherd such a treewide change to completion. This is the same repository of patches that has been applied to the end of the daily linux-next branches for the past several weeks" * 'cpuinit_phase2' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux: (28 commits) block: delete __cpuinit usage from all block files drivers: delete __cpuinit usage from all remaining drivers files kernel: delete __cpuinit usage from all core kernel files rcu: delete __cpuinit usage from all rcu files net: delete __cpuinit usage from all net files acpi: delete __cpuinit usage from all acpi files hwmon: delete __cpuinit usage from all hwmon files cpufreq: delete __cpuinit usage from all cpufreq files clocksource+irqchip: delete __cpuinit usage from all related files x86: delete __cpuinit usage from all x86 files score: delete __cpuinit usage from all score files xtensa: delete __cpuinit usage from all xtensa files openrisc: delete __cpuinit usage from all openrisc files m32r: delete __cpuinit usage from all m32r files hexagon: delete __cpuinit usage from all hexagon files frv: delete __cpuinit usage from all frv files cris: delete __cpuinit usage from all cris files metag: delete __cpuinit usage from all metag files tile: delete __cpuinit usage from all tile files sh: delete __cpuinit usage from all sh files ...
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/coretemp.c39
-rw-r--r--drivers/hwmon/via-cputemp.c8
2 files changed, 22 insertions, 25 deletions
diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
index ade35cf3f488..2e5e2dc47eaf 100644
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -195,7 +195,7 @@ struct tjmax {
195 int tjmax; 195 int tjmax;
196}; 196};
197 197
198static const struct tjmax __cpuinitconst tjmax_table[] = { 198static const struct tjmax tjmax_table[] = {
199 { "CPU 230", 100000 }, /* Model 0x1c, stepping 2 */ 199 { "CPU 230", 100000 }, /* Model 0x1c, stepping 2 */
200 { "CPU 330", 125000 }, /* Model 0x1c, stepping 2 */ 200 { "CPU 330", 125000 }, /* Model 0x1c, stepping 2 */
201 { "CPU CE4110", 110000 }, /* Model 0x1c, stepping 10 Sodaville */ 201 { "CPU CE4110", 110000 }, /* Model 0x1c, stepping 10 Sodaville */
@@ -211,7 +211,7 @@ struct tjmax_model {
211 211
212#define ANY 0xff 212#define ANY 0xff
213 213
214static const struct tjmax_model __cpuinitconst tjmax_model_table[] = { 214static const struct tjmax_model tjmax_model_table[] = {
215 { 0x1c, 10, 100000 }, /* D4xx, K4xx, N4xx, D5xx, K5xx, N5xx */ 215 { 0x1c, 10, 100000 }, /* D4xx, K4xx, N4xx, D5xx, K5xx, N5xx */
216 { 0x1c, ANY, 90000 }, /* Z5xx, N2xx, possibly others 216 { 0x1c, ANY, 90000 }, /* Z5xx, N2xx, possibly others
217 * Note: Also matches 230 and 330, 217 * Note: Also matches 230 and 330,
@@ -226,8 +226,7 @@ static const struct tjmax_model __cpuinitconst tjmax_model_table[] = {
226 { 0x36, ANY, 100000 }, /* Atom Cedar Trail/Cedarview (N2xxx, D2xxx) */ 226 { 0x36, ANY, 100000 }, /* Atom Cedar Trail/Cedarview (N2xxx, D2xxx) */
227}; 227};
228 228
229static int __cpuinit adjust_tjmax(struct cpuinfo_x86 *c, u32 id, 229static int adjust_tjmax(struct cpuinfo_x86 *c, u32 id, struct device *dev)
230 struct device *dev)
231{ 230{
232 /* The 100C is default for both mobile and non mobile CPUs */ 231 /* The 100C is default for both mobile and non mobile CPUs */
233 232
@@ -317,8 +316,7 @@ static int __cpuinit adjust_tjmax(struct cpuinfo_x86 *c, u32 id,
317 return tjmax; 316 return tjmax;
318} 317}
319 318
320static int __cpuinit get_tjmax(struct cpuinfo_x86 *c, u32 id, 319static int get_tjmax(struct cpuinfo_x86 *c, u32 id, struct device *dev)
321 struct device *dev)
322{ 320{
323 int err; 321 int err;
324 u32 eax, edx; 322 u32 eax, edx;
@@ -367,8 +365,8 @@ static int create_name_attr(struct platform_data *pdata,
367 return device_create_file(dev, &pdata->name_attr); 365 return device_create_file(dev, &pdata->name_attr);
368} 366}
369 367
370static int __cpuinit create_core_attrs(struct temp_data *tdata, 368static int create_core_attrs(struct temp_data *tdata, struct device *dev,
371 struct device *dev, int attr_no) 369 int attr_no)
372{ 370{
373 int err, i; 371 int err, i;
374 static ssize_t (*const rd_ptr[TOTAL_ATTRS]) (struct device *dev, 372 static ssize_t (*const rd_ptr[TOTAL_ATTRS]) (struct device *dev,
@@ -401,7 +399,7 @@ exit_free:
401} 399}
402 400
403 401
404static int __cpuinit chk_ucode_version(unsigned int cpu) 402static int chk_ucode_version(unsigned int cpu)
405{ 403{
406 struct cpuinfo_x86 *c = &cpu_data(cpu); 404 struct cpuinfo_x86 *c = &cpu_data(cpu);
407 405
@@ -417,7 +415,7 @@ static int __cpuinit chk_ucode_version(unsigned int cpu)
417 return 0; 415 return 0;
418} 416}
419 417
420static struct platform_device __cpuinit *coretemp_get_pdev(unsigned int cpu) 418static struct platform_device *coretemp_get_pdev(unsigned int cpu)
421{ 419{
422 u16 phys_proc_id = TO_PHYS_ID(cpu); 420 u16 phys_proc_id = TO_PHYS_ID(cpu);
423 struct pdev_entry *p; 421 struct pdev_entry *p;
@@ -434,8 +432,7 @@ static struct platform_device __cpuinit *coretemp_get_pdev(unsigned int cpu)
434 return NULL; 432 return NULL;
435} 433}
436 434
437static struct temp_data __cpuinit *init_temp_data(unsigned int cpu, 435static struct temp_data *init_temp_data(unsigned int cpu, int pkg_flag)
438 int pkg_flag)
439{ 436{
440 struct temp_data *tdata; 437 struct temp_data *tdata;
441 438
@@ -453,8 +450,8 @@ static struct temp_data __cpuinit *init_temp_data(unsigned int cpu,
453 return tdata; 450 return tdata;
454} 451}
455 452
456static int __cpuinit create_core_data(struct platform_device *pdev, 453static int create_core_data(struct platform_device *pdev, unsigned int cpu,
457 unsigned int cpu, int pkg_flag) 454 int pkg_flag)
458{ 455{
459 struct temp_data *tdata; 456 struct temp_data *tdata;
460 struct platform_data *pdata = platform_get_drvdata(pdev); 457 struct platform_data *pdata = platform_get_drvdata(pdev);
@@ -524,7 +521,7 @@ exit_free:
524 return err; 521 return err;
525} 522}
526 523
527static void __cpuinit coretemp_add_core(unsigned int cpu, int pkg_flag) 524static void coretemp_add_core(unsigned int cpu, int pkg_flag)
528{ 525{
529 struct platform_device *pdev = coretemp_get_pdev(cpu); 526 struct platform_device *pdev = coretemp_get_pdev(cpu);
530 int err; 527 int err;
@@ -607,7 +604,7 @@ static struct platform_driver coretemp_driver = {
607 .remove = coretemp_remove, 604 .remove = coretemp_remove,
608}; 605};
609 606
610static int __cpuinit coretemp_device_add(unsigned int cpu) 607static int coretemp_device_add(unsigned int cpu)
611{ 608{
612 int err; 609 int err;
613 struct platform_device *pdev; 610 struct platform_device *pdev;
@@ -651,7 +648,7 @@ exit:
651 return err; 648 return err;
652} 649}
653 650
654static void __cpuinit coretemp_device_remove(unsigned int cpu) 651static void coretemp_device_remove(unsigned int cpu)
655{ 652{
656 struct pdev_entry *p, *n; 653 struct pdev_entry *p, *n;
657 u16 phys_proc_id = TO_PHYS_ID(cpu); 654 u16 phys_proc_id = TO_PHYS_ID(cpu);
@@ -667,7 +664,7 @@ static void __cpuinit coretemp_device_remove(unsigned int cpu)
667 mutex_unlock(&pdev_list_mutex); 664 mutex_unlock(&pdev_list_mutex);
668} 665}
669 666
670static bool __cpuinit is_any_core_online(struct platform_data *pdata) 667static bool is_any_core_online(struct platform_data *pdata)
671{ 668{
672 int i; 669 int i;
673 670
@@ -681,7 +678,7 @@ static bool __cpuinit is_any_core_online(struct platform_data *pdata)
681 return false; 678 return false;
682} 679}
683 680
684static void __cpuinit get_core_online(unsigned int cpu) 681static void get_core_online(unsigned int cpu)
685{ 682{
686 struct cpuinfo_x86 *c = &cpu_data(cpu); 683 struct cpuinfo_x86 *c = &cpu_data(cpu);
687 struct platform_device *pdev = coretemp_get_pdev(cpu); 684 struct platform_device *pdev = coretemp_get_pdev(cpu);
@@ -723,7 +720,7 @@ static void __cpuinit get_core_online(unsigned int cpu)
723 coretemp_add_core(cpu, 0); 720 coretemp_add_core(cpu, 0);
724} 721}
725 722
726static void __cpuinit put_core_offline(unsigned int cpu) 723static void put_core_offline(unsigned int cpu)
727{ 724{
728 int i, indx; 725 int i, indx;
729 struct platform_data *pdata; 726 struct platform_data *pdata;
@@ -771,7 +768,7 @@ static void __cpuinit put_core_offline(unsigned int cpu)
771 coretemp_device_remove(cpu); 768 coretemp_device_remove(cpu);
772} 769}
773 770
774static int __cpuinit coretemp_cpu_callback(struct notifier_block *nfb, 771static int coretemp_cpu_callback(struct notifier_block *nfb,
775 unsigned long action, void *hcpu) 772 unsigned long action, void *hcpu)
776{ 773{
777 unsigned int cpu = (unsigned long) hcpu; 774 unsigned int cpu = (unsigned long) hcpu;
diff --git a/drivers/hwmon/via-cputemp.c b/drivers/hwmon/via-cputemp.c
index 76f157b568ed..38944e94f65f 100644
--- a/drivers/hwmon/via-cputemp.c
+++ b/drivers/hwmon/via-cputemp.c
@@ -221,7 +221,7 @@ struct pdev_entry {
221static LIST_HEAD(pdev_list); 221static LIST_HEAD(pdev_list);
222static DEFINE_MUTEX(pdev_list_mutex); 222static DEFINE_MUTEX(pdev_list_mutex);
223 223
224static int __cpuinit via_cputemp_device_add(unsigned int cpu) 224static int via_cputemp_device_add(unsigned int cpu)
225{ 225{
226 int err; 226 int err;
227 struct platform_device *pdev; 227 struct platform_device *pdev;
@@ -262,7 +262,7 @@ exit:
262 return err; 262 return err;
263} 263}
264 264
265static void __cpuinit via_cputemp_device_remove(unsigned int cpu) 265static void via_cputemp_device_remove(unsigned int cpu)
266{ 266{
267 struct pdev_entry *p; 267 struct pdev_entry *p;
268 268
@@ -279,8 +279,8 @@ static void __cpuinit via_cputemp_device_remove(unsigned int cpu)
279 mutex_unlock(&pdev_list_mutex); 279 mutex_unlock(&pdev_list_mutex);
280} 280}
281 281
282static int __cpuinit via_cputemp_cpu_callback(struct notifier_block *nfb, 282static int via_cputemp_cpu_callback(struct notifier_block *nfb,
283 unsigned long action, void *hcpu) 283 unsigned long action, void *hcpu)
284{ 284{
285 unsigned int cpu = (unsigned long) hcpu; 285 unsigned int cpu = (unsigned long) hcpu;
286 286