* [PATCH-next 00/32] Delete support for __cpuinit @ 2013-06-24 19:30 Paul Gortmaker 2013-06-24 19:30 ` [PATCH 25/32] cpufreq: delete __cpuinit usage from all cpufreq files Paul Gortmaker [not found] ` <1372102237-8757-1-git-send-email-paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org> 0 siblings, 2 replies; 10+ messages in thread From: Paul Gortmaker @ 2013-06-24 19:30 UTC (permalink / raw) To: linux-kernel-u79uwXL29TY76Z2rM5mHXA Cc: linux-m32r-ja-rQhvJZKUsGBRYuoOT4C5/9i2O/JbrIOy, linux-m32r-rQhvJZKUsGBRYuoOT4C5/9i2O/JbrIOy, Benjamin Herrenschmidt, linux-sh-u79uwXL29TY76Z2rM5mHXA, Viresh Kumar, linux-73nT9ZVIoz3k1uMJSBkQmQ, Matt Porter, Will Deacon, x86-DgEjT+Ai2ygdnm+yROfE0A, David Howells, Paul Gortmaker, James Hogan, Mackerras, Helge Deller, sparclinux-u79uwXL29TY76Z2rM5mHXA, linux-ia64-u79uwXL29TY76Z2rM5mHXA, netdev-u79uwXL29TY76Z2rM5mHXA, H. Peter Anvin, Josh Triplett, Jonas Bonn, linux-s390-u79uwXL29TY76Z2rM5mHXA, Jesper Nilsson, Russell King This is the whole patch queue for removal of __cpuinit support against the latest linux-next tree (Jun24th). Some of you may have already seen chunks of it, or already read the logistics of what is being done (and why) here: https://lkml.org/lkml/2013/6/20/513 I won't repeat all that here again, other than to say this send is to ensure arch/subsystem maintainers get a 2nd chance to know what is going on and to look at what is being proposed for their area of code. That, and to ensure one complete continuous copy of it gets mailed out. You can also see the patch queue here: http://git.kernel.org/cgit/linux/kernel/git/paulg/cpuinit-delete.git If you've noticed that a chunk for MIPS isn't present here, that is because it has already been queued in the linux-mips for-next branch. Thanks, Paul. --- Cc: Len Brown <lenb-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Cc: "Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org> Cc: Richard Henderson <rth-hL46jP5Bxq7R7s880joybQ@public.gmane.org> Cc: Ivan Kokshaysky <ink-biIs/Y0ymYJMZLIVYojuPNP0rXTJTi09@public.gmane.org> Cc: Matt Turner <mattst88-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Cc: Vineet Gupta <vgupta-HKixBCOQz3hWk0Htik3J/w@public.gmane.org> Cc: Russell King <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> Cc: Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org> Cc: Catalin Marinas <catalin.marinas-5wv7dgnIgG8@public.gmane.org> Cc: Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org> Cc: Mike Frysinger <vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org> Cc: Bob Liu <lliubbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Cc: Sonic Zhang <sonic.zhang-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org> Cc: Jens Axboe <axboe-tSWWG44O7X1aa/9Udqfwiw@public.gmane.org> Cc: John Stultz <john.stultz-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> Cc: Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org> Cc: "Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org> Cc: Viresh Kumar <viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> Cc: Mikael Starvik <starvik-VrBV9hrLPhE@public.gmane.org> Cc: Jesper Nilsson <jesper.nilsson-VrBV9hrLPhE@public.gmane.org> Cc: Greg Kroah-Hartman <gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org> Cc: David Howells <dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Cc: Richard Kuo <rkuo-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> Cc: Fenghua Yu <fenghua.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Cc: Tony Luck <tony.luck-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Cc: Fenghua Yu <fenghua.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Cc: Hirokazu Takata <takata-TMSiXQfHlQjsTix1lMzHGQ@public.gmane.org> Cc: James Hogan <james.hogan-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org> Cc: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> Cc: Rusty Russell <rusty-8n+1lVoiYb80n/F98K4Iww@public.gmane.org> Cc: "David S. Miller" <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org> Cc: Jonas Bonn <jonas-A9uVI2HLR7kOP4wsBPIw7w@public.gmane.org> Cc: Helge Deller <deller-Mmb7MZpHnFY@public.gmane.org> Cc: Benjamin Herrenschmidt <benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org> Cc: Paul Mackerras <paulus-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> Cc: Josh Boyer <jwboyer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Cc: Matt Porter <mporter-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org> Cc: Kumar Gala <galak-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org> Cc: "Paul E. McKenney" <paulmck-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> Cc: Josh Triplett <josh-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org> Cc: Dipankar Sarma <dipankar-xthvdsQ13ZrQT0dZR+AlfA@public.gmane.org> Cc: Martin Schwidefsky <schwidefsky-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org> Cc: Heiko Carstens <heiko.carstens-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org> Cc: Chen Liqin <liqin.chen-+XGAvkf1AAHby3iVrkZq2A@public.gmane.org> Cc: Lennox Wu <lennox.wu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Cc: Paul Mundt <lethal-M7jkjyW5wf5g9hUCZPvPmw@public.gmane.org> Cc: "David S. Miller" <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org> Cc: Chris Metcalf <cmetcalf-kv+TWInifGbQT0dZR+AlfA@public.gmane.org> Cc: Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org> Cc: Ingo Molnar <mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Cc: "H. Peter Anvin" <hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org> Cc: Chris Zankel <chris-YvXeqwSYzG2sTnJN9+BGXg@public.gmane.org> Cc: Max Filippov <jcmvbkbc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Cc: linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Cc: uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org Cc: cpufreq-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linux-cris-kernel-VrBV9hrLPhE@public.gmane.org Cc: linux-hexagon-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org Cc: linux-ia64-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linux-m32r-rQhvJZKUsGBRYuoOT4C5/9i2O/JbrIOy@public.gmane.org Cc: linux-m32r-ja-rQhvJZKUsGBRYuoOT4C5/9i2O/JbrIOy@public.gmane.org Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linux-ZwoEplunGu2h2975yA52AaxOck334EZe@public.gmane.org Cc: linux-parisc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Cc: linux390-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org Cc: linux-s390-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linux-sh-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: sparclinux-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org Cc: linux-xtensa-PjhNF2WwrV/0Sa2dR60CXw@public.gmane.org Paul Gortmaker (32): init.h: remove __cpuinit sections from the kernel modpost: remove all traces of cpuinit/cpuexit sections alpha: delete __cpuinit usage from all users powerpc: delete __cpuinit usage from all users parisc: delete __cpuinit usage from all users ia64: delete __cpuinit usage from all ia64 users arm: delete __cpuinit/__CPUINIT usage from all ARM users sparc: delete __cpuinit/__CPUINIT usage from all users arm64: delete __cpuinit usage from all users arc: delete __cpuinit usage from all arc files blackfin: delete __cpuinit usage from all blackfin files s390: delete __cpuinit usage from all s390 files sh: delete __cpuinit usage from all sh files tile: delete __cpuinit usage from all tile files metag: delete __cpuinit usage from all metag files cris: delete __cpuinit usage from all cris files frv: delete __cpuinit usage from all frv files hexagon: delete __cpuinit usage from all hexagon files m32r: delete __cpuinit usage from all m32r files openrisc: delete __cpuinit usage from all openrisc files xtensa: delete __cpuinit usage from all xtensa files score: delete __cpuinit usage from all score files x86: delete __cpuinit usage from all x86 files clocksource+irqchip: delete __cpuinit usage from all related files cpufreq: delete __cpuinit usage from all cpufreq files hwmon: delete __cpuinit usage from all hwmon files acpi: delete __cpuinit usage from all acpi files net: delete __cpuinit usage from all net files rcu: delete __cpuinit usage from all rcu files kernel: delete __cpuinit usage from all core kernel files drivers: delete __cpuinit usage from all remaining drivers files block: delete __cpuinit usage from all block files Documentation/cpu-hotplug.txt | 6 +-- arch/alpha/kernel/smp.c | 10 ++--- arch/alpha/kernel/traps.c | 4 +- arch/arc/include/asm/irq.h | 2 +- arch/arc/kernel/irq.c | 2 +- arch/arc/kernel/setup.c | 10 ++--- arch/arc/kernel/smp.c | 4 +- arch/arc/kernel/time.c | 6 +-- arch/arc/mm/cache_arc700.c | 4 +- arch/arc/mm/tlb.c | 4 +- arch/arm/common/mcpm_platsmp.c | 4 +- arch/arm/include/asm/arch_timer.h | 2 +- arch/arm/kernel/head-common.S | 1 - arch/arm/kernel/head.S | 1 - arch/arm/kernel/hw_breakpoint.c | 4 +- arch/arm/kernel/perf_event_cpu.c | 6 +-- arch/arm/kernel/psci_smp.c | 3 +- arch/arm/kernel/smp.c | 18 ++++---- arch/arm/kernel/smp_twd.c | 6 +-- arch/arm/lib/delay.c | 2 +- arch/arm/mach-exynos/headsmp.S | 2 - arch/arm/mach-exynos/platsmp.c | 4 +- arch/arm/mach-highbank/platsmp.c | 2 +- arch/arm/mach-imx/platsmp.c | 2 +- arch/arm/mach-msm/headsmp.S | 2 - arch/arm/mach-msm/platsmp.c | 6 +-- arch/arm/mach-msm/timer.c | 4 +- arch/arm/mach-mvebu/coherency.c | 2 +- arch/arm/mach-mvebu/headsmp.S | 2 - arch/arm/mach-mvebu/platsmp.c | 5 +-- arch/arm/mach-omap2/omap-headsmp.S | 2 - arch/arm/mach-omap2/omap-mpuss-lowpower.c | 2 +- arch/arm/mach-omap2/omap-smp.c | 4 +- arch/arm/mach-omap2/omap-wakeupgen.c | 4 +- arch/arm/mach-prima2/headsmp.S | 2 - arch/arm/mach-prima2/platsmp.c | 4 +- arch/arm/mach-shmobile/headsmp-scu.S | 1 - arch/arm/mach-shmobile/headsmp.S | 2 - arch/arm/mach-shmobile/smp-emev2.c | 2 +- arch/arm/mach-shmobile/smp-r8a7779.c | 2 +- arch/arm/mach-shmobile/smp-sh73a0.c | 2 +- arch/arm/mach-socfpga/headsmp.S | 1 - arch/arm/mach-socfpga/platsmp.c | 2 +- arch/arm/mach-spear/generic.h | 2 +- arch/arm/mach-spear/platsmp.c | 4 +- arch/arm/mach-tegra/platsmp.c | 4 +- arch/arm/mach-tegra/pm.c | 2 +- arch/arm/mach-ux500/platsmp.c | 4 +- arch/arm/mach-zynq/common.h | 2 +- arch/arm/mach-zynq/headsmp.S | 2 - arch/arm/mach-zynq/platsmp.c | 6 +-- arch/arm/mm/proc-arm1020.S | 2 - arch/arm/mm/proc-arm1020e.S | 2 - arch/arm/mm/proc-arm1022.S | 2 - arch/arm/mm/proc-arm1026.S | 3 -- arch/arm/mm/proc-arm720.S | 2 - arch/arm/mm/proc-arm740.S | 2 - arch/arm/mm/proc-arm7tdmi.S | 2 - arch/arm/mm/proc-arm920.S | 2 - arch/arm/mm/proc-arm922.S | 2 - arch/arm/mm/proc-arm925.S | 2 - arch/arm/mm/proc-arm926.S | 2 - arch/arm/mm/proc-arm940.S | 2 - arch/arm/mm/proc-arm946.S | 2 - arch/arm/mm/proc-arm9tdmi.S | 2 - arch/arm/mm/proc-fa526.S | 2 - arch/arm/mm/proc-feroceon.S | 2 - arch/arm/mm/proc-mohawk.S | 2 - arch/arm/mm/proc-sa110.S | 2 - arch/arm/mm/proc-sa1100.S | 2 - arch/arm/mm/proc-v6.S | 2 - arch/arm/mm/proc-v7-2level.S | 4 -- arch/arm/mm/proc-v7-3level.S | 4 -- arch/arm/mm/proc-v7.S | 2 - arch/arm/mm/proc-xsc3.S | 2 - arch/arm/mm/proc-xscale.S | 2 - arch/arm/plat-versatile/platsmp.c | 6 +-- arch/arm64/include/asm/arch_timer.h | 2 +- arch/arm64/kernel/debug-monitors.c | 6 +-- arch/arm64/kernel/hw_breakpoint.c | 4 +- arch/arm64/kernel/smp.c | 8 ++-- arch/blackfin/kernel/perf_event.c | 2 +- arch/blackfin/kernel/setup.c | 4 +- arch/blackfin/mach-bf561/smp.c | 6 +-- arch/blackfin/mach-common/cache-c.c | 4 +- arch/blackfin/mach-common/ints-priority.c | 2 +- arch/blackfin/mach-common/smp.c | 8 ++-- arch/cris/arch-v32/kernel/smp.c | 2 +- arch/frv/kernel/setup.c | 2 +- arch/hexagon/kernel/setup.c | 2 +- arch/hexagon/kernel/smp.c | 4 +- arch/ia64/kernel/acpi.c | 4 +- arch/ia64/kernel/err_inject.c | 8 ++-- arch/ia64/kernel/mca.c | 12 ++--- arch/ia64/kernel/numa.c | 4 +- arch/ia64/kernel/palinfo.c | 4 +- arch/ia64/kernel/salinfo.c | 4 +- arch/ia64/kernel/setup.c | 10 ++--- arch/ia64/kernel/smpboot.c | 8 ++-- arch/ia64/kernel/topology.c | 18 ++++---- arch/ia64/mm/contig.c | 3 +- arch/ia64/mm/discontig.c | 2 +- arch/ia64/mm/numa.c | 2 +- arch/ia64/sn/kernel/setup.c | 8 ++-- arch/ia64/xen/hypervisor.c | 2 +- arch/m32r/kernel/smpboot.c | 2 +- arch/metag/kernel/perf/perf_event.c | 6 +-- arch/metag/kernel/smp.c | 16 +++---- arch/metag/kernel/traps.c | 2 +- arch/openrisc/kernel/setup.c | 2 +- arch/parisc/kernel/firmware.c | 14 +++--- arch/parisc/kernel/hardware.c | 2 +- arch/parisc/kernel/processor.c | 6 +-- arch/parisc/kernel/smp.c | 8 ++-- arch/powerpc/include/asm/rtas.h | 4 +- arch/powerpc/include/asm/vdso.h | 2 +- arch/powerpc/kernel/cacheinfo.c | 36 ++++++++------- arch/powerpc/kernel/rtas.c | 4 +- arch/powerpc/kernel/smp.c | 4 +- arch/powerpc/kernel/sysfs.c | 6 +-- arch/powerpc/kernel/time.c | 1 - arch/powerpc/kernel/vdso.c | 2 +- arch/powerpc/mm/44x_mmu.c | 6 +-- arch/powerpc/mm/hash_utils_64.c | 2 +- arch/powerpc/mm/mmu_context_nohash.c | 6 +-- arch/powerpc/mm/numa.c | 7 ++- arch/powerpc/mm/tlb_nohash.c | 2 +- arch/powerpc/perf/core-book3s.c | 4 +- arch/powerpc/platforms/44x/currituck.c | 4 +- arch/powerpc/platforms/44x/iss4xx.c | 4 +- arch/powerpc/platforms/85xx/smp.c | 6 +-- arch/powerpc/platforms/powermac/smp.c | 2 +- arch/powerpc/platforms/powernv/smp.c | 2 +- arch/s390/kernel/cache.c | 15 +++---- arch/s390/kernel/perf_cpum_cf.c | 4 +- arch/s390/kernel/processor.c | 2 +- arch/s390/kernel/smp.c | 17 ++++--- arch/s390/kernel/sysinfo.c | 2 +- arch/s390/kernel/vtime.c | 6 +-- arch/s390/mm/fault.c | 4 +- arch/score/mm/tlb-score.c | 2 +- arch/sh/kernel/cpu/init.c | 18 ++++---- arch/sh/kernel/cpu/sh2/probe.c | 2 +- arch/sh/kernel/cpu/sh2a/probe.c | 2 +- arch/sh/kernel/cpu/sh3/probe.c | 2 +- arch/sh/kernel/cpu/sh4/probe.c | 2 +- arch/sh/kernel/cpu/sh4a/smp-shx3.c | 6 +-- arch/sh/kernel/cpu/sh5/probe.c | 2 +- arch/sh/kernel/perf_event.c | 4 +- arch/sh/kernel/process.c | 2 +- arch/sh/kernel/setup.c | 2 +- arch/sh/kernel/smp.c | 8 ++-- arch/sh/kernel/traps_32.c | 2 +- arch/sh/kernel/traps_64.c | 2 +- arch/sh/mm/tlb-sh5.c | 2 +- arch/sparc/kernel/ds.c | 11 ++--- arch/sparc/kernel/entry.h | 2 +- arch/sparc/kernel/hvtramp.S | 1 - arch/sparc/kernel/irq_64.c | 5 ++- arch/sparc/kernel/leon_smp.c | 10 ++--- arch/sparc/kernel/mdesc.c | 34 +++++++------- arch/sparc/kernel/smp_32.c | 20 ++++----- arch/sparc/kernel/smp_64.c | 9 ++-- arch/sparc/kernel/sun4d_smp.c | 6 +-- arch/sparc/kernel/sun4m_smp.c | 6 +-- arch/sparc/kernel/sysfs.c | 4 +- arch/sparc/kernel/trampoline_32.S | 3 -- arch/sparc/kernel/trampoline_64.S | 2 - arch/sparc/mm/init_64.c | 2 +- arch/sparc/mm/srmmu.c | 12 ++--- arch/tile/kernel/irq.c | 2 +- arch/tile/kernel/messaging.c | 2 +- arch/tile/kernel/setup.c | 12 ++--- arch/tile/kernel/smpboot.c | 8 ++-- arch/tile/kernel/time.c | 2 +- arch/x86/include/asm/cpu.h | 2 +- arch/x86/include/asm/microcode.h | 4 +- arch/x86/include/asm/microcode_intel.h | 4 +- arch/x86/include/asm/mmconfig.h | 4 +- arch/x86/include/asm/mpspec.h | 2 +- arch/x86/include/asm/numa.h | 6 +-- arch/x86/include/asm/prom.h | 2 +- arch/x86/include/asm/smp.h | 2 +- arch/x86/kernel/acpi/boot.c | 6 +-- arch/x86/kernel/apic/apic.c | 30 ++++++------- arch/x86/kernel/apic/apic_numachip.c | 2 +- arch/x86/kernel/apic/es7000_32.c | 2 +- arch/x86/kernel/apic/numaq_32.c | 2 +- arch/x86/kernel/apic/x2apic_cluster.c | 2 +- arch/x86/kernel/apic/x2apic_uv_x.c | 14 +++--- arch/x86/kernel/cpu/amd.c | 33 +++++++------- arch/x86/kernel/cpu/centaur.c | 26 +++++------ arch/x86/kernel/cpu/common.c | 64 +++++++++++++-------------- arch/x86/kernel/cpu/cyrix.c | 40 ++++++++--------- arch/x86/kernel/cpu/hypervisor.c | 2 +- arch/x86/kernel/cpu/intel.c | 30 ++++++------- arch/x86/kernel/cpu/intel_cacheinfo.c | 55 +++++++++++------------ arch/x86/kernel/cpu/mcheck/mce.c | 23 +++++----- arch/x86/kernel/cpu/mcheck/mce_amd.c | 14 +++--- arch/x86/kernel/cpu/mcheck/therm_throt.c | 9 ++-- arch/x86/kernel/cpu/perf_event.c | 2 +- arch/x86/kernel/cpu/perf_event_amd_ibs.c | 2 +- arch/x86/kernel/cpu/perf_event_amd_uncore.c | 31 +++++++------ arch/x86/kernel/cpu/perf_event_intel_uncore.c | 20 ++++----- arch/x86/kernel/cpu/rdrand.c | 2 +- arch/x86/kernel/cpu/scattered.c | 4 +- arch/x86/kernel/cpu/topology.c | 2 +- arch/x86/kernel/cpu/transmeta.c | 6 +-- arch/x86/kernel/cpu/umc.c | 2 +- arch/x86/kernel/cpu/vmware.c | 2 +- arch/x86/kernel/cpuid.c | 7 ++- arch/x86/kernel/devicetree.c | 2 +- arch/x86/kernel/head_32.S | 1 - arch/x86/kernel/i387.c | 8 ++-- arch/x86/kernel/irq_32.c | 2 +- arch/x86/kernel/kvm.c | 10 ++--- arch/x86/kernel/kvmclock.c | 2 +- arch/x86/kernel/microcode_core.c | 2 +- arch/x86/kernel/microcode_core_early.c | 6 +-- arch/x86/kernel/microcode_intel_early.c | 26 +++++------ arch/x86/kernel/mmconf-fam10h_64.c | 12 ++--- arch/x86/kernel/msr.c | 6 +-- arch/x86/kernel/process.c | 2 +- arch/x86/kernel/setup.c | 2 +- arch/x86/kernel/smpboot.c | 28 ++++++------ arch/x86/kernel/tboot.c | 6 +-- arch/x86/kernel/tsc.c | 4 +- arch/x86/kernel/tsc_sync.c | 18 ++++---- arch/x86/kernel/vsyscall_64.c | 6 +-- arch/x86/kernel/x86_init.c | 4 +- arch/x86/kernel/xsave.c | 4 +- arch/x86/mm/mmio-mod.c | 4 +- arch/x86/mm/numa.c | 12 ++--- arch/x86/mm/numa_emulation.c | 12 ++--- arch/x86/mm/setup_nx.c | 4 +- arch/x86/pci/amd_bus.c | 8 ++-- arch/x86/platform/ce4100/ce4100.c | 2 +- arch/x86/platform/mrst/mrst.c | 4 +- arch/x86/xen/enlighten.c | 6 +-- arch/x86/xen/setup.c | 6 +-- arch/x86/xen/smp.c | 12 ++--- arch/x86/xen/spinlock.c | 2 +- arch/x86/xen/xen-ops.h | 2 +- arch/xtensa/kernel/time.c | 2 +- block/blk-iopoll.c | 6 +-- block/blk-softirq.c | 6 +-- drivers/acpi/acpi_processor.c | 2 +- drivers/acpi/processor_core.c | 8 ++-- drivers/acpi/processor_driver.c | 8 ++-- drivers/acpi/processor_idle.c | 6 +-- drivers/base/cpu.c | 2 +- drivers/base/topology.c | 10 ++--- drivers/clocksource/arm_arch_timer.c | 8 ++-- drivers/clocksource/exynos_mct.c | 4 +- drivers/clocksource/metag_generic.c | 6 +-- drivers/clocksource/time-armada-370-xp.c | 4 +- drivers/clocksource/timer-marco.c | 4 +- drivers/cpufreq/cpufreq.c | 4 +- drivers/cpufreq/cpufreq_stats.c | 4 +- drivers/cpufreq/dbx500-cpufreq.c | 2 +- drivers/cpufreq/intel_pstate.c | 4 +- drivers/cpufreq/longhaul.c | 6 +-- drivers/cpufreq/longhaul.h | 26 +++++------ drivers/cpufreq/longrun.c | 8 ++-- drivers/cpufreq/omap-cpufreq.c | 2 +- drivers/cpufreq/powernow-k7.c | 8 ++-- drivers/cpufreq/powernow-k8.c | 6 +-- drivers/hwmon/coretemp.c | 39 ++++++++-------- drivers/hwmon/via-cputemp.c | 8 ++-- drivers/irqchip/irq-gic.c | 8 ++-- drivers/oprofile/timer_int.c | 4 +- drivers/xen/xen-acpi-cpuhotplug.c | 2 +- include/asm-generic/vmlinux.lds.h | 12 ----- include/linux/cpu.h | 2 +- include/linux/init.h | 19 ++++---- include/linux/perf_event.h | 2 +- init/calibrate.c | 13 +++--- kernel/cpu.c | 6 +-- kernel/events/core.c | 4 +- kernel/fork.c | 2 +- kernel/hrtimer.c | 6 +-- kernel/printk.c | 2 +- kernel/profile.c | 2 +- kernel/rcutorture.c | 6 +-- kernel/rcutree.c | 6 +-- kernel/rcutree.h | 4 +- kernel/rcutree_plugin.h | 6 +-- kernel/relay.c | 2 +- kernel/sched/core.c | 12 ++--- kernel/sched/fair.c | 2 +- kernel/smp.c | 2 +- kernel/smpboot.c | 2 +- kernel/softirq.c | 8 ++-- kernel/time/tick-sched.c | 2 +- kernel/timer.c | 10 ++--- kernel/workqueue.c | 4 +- lib/Kconfig.debug | 2 +- lib/earlycpio.c | 2 +- lib/percpu_counter.c | 2 +- mm/memcontrol.c | 2 +- mm/page-writeback.c | 4 +- mm/slab.c | 10 ++--- mm/slub.c | 4 +- mm/vmstat.c | 6 +-- net/core/flow.c | 4 +- net/iucv/iucv.c | 2 +- scripts/mod/modpost.c | 52 ++++------------------ 307 files changed, 896 insertions(+), 1037 deletions(-) -- 1.8.1.2 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 25/32] cpufreq: delete __cpuinit usage from all cpufreq files 2013-06-24 19:30 [PATCH-next 00/32] Delete support for __cpuinit Paul Gortmaker @ 2013-06-24 19:30 ` Paul Gortmaker 2013-06-24 22:42 ` Dirk Brandewie 2013-06-25 3:31 ` Viresh Kumar [not found] ` <1372102237-8757-1-git-send-email-paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org> 1 sibling, 2 replies; 10+ messages in thread From: Paul Gortmaker @ 2013-06-24 19:30 UTC (permalink / raw) To: linux-kernel Cc: Paul Gortmaker, Rafael J. Wysocki, Viresh Kumar, cpufreq, linux-pm The __cpuinit type of throwaway sections might have made sense some time ago when RAM was more constrained, but now the savings do not offset the cost and complications. For example, the fix in commit 5e427ec2d0 ("x86: Fix bit corruption at CPU resume time") is a good example of the nasty type of bugs that can be created with improper use of the various __init prefixes. After a discussion on LKML[1] it was decided that cpuinit should go the way of devinit and be phased out. Once all the users are gone, we can then finally remove the macros themselves from linux/init.h. This removes all the drivers/cpufreq uses of the __cpuinit macros from all C files. [1] https://lkml.org/lkml/2013/5/20/589 Cc: "Rafael J. Wysocki" <rjw@sisk.pl> Cc: Viresh Kumar <viresh.kumar@linaro.org> Cc: cpufreq@vger.kernel.org Cc: linux-pm@vger.kernel.org Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> --- [This commit is part of the __cpuinit removal work. If you don't see any problems with it, then you don't have to do anything ; it will be submitted with all the rest of the __cpuinit removal work. On the other hand, if you want to carry this patch in with your other pending changes so as to handle conflicts with other pending work yourself, then that is fine too, as the commits can largely be treated independently. For more information, please see: https://lkml.org/lkml/2013/6/20/513 ] drivers/cpufreq/cpufreq.c | 4 ++-- drivers/cpufreq/cpufreq_stats.c | 4 ++-- drivers/cpufreq/dbx500-cpufreq.c | 2 +- drivers/cpufreq/intel_pstate.c | 4 ++-- drivers/cpufreq/longhaul.c | 6 +++--- drivers/cpufreq/longhaul.h | 26 +++++++++++++------------- drivers/cpufreq/longrun.c | 8 ++++---- drivers/cpufreq/omap-cpufreq.c | 2 +- drivers/cpufreq/powernow-k7.c | 8 ++++---- drivers/cpufreq/powernow-k8.c | 6 +++--- 10 files changed, 35 insertions(+), 35 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index f8c2860..5687d28 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1900,8 +1900,8 @@ no_policy: } EXPORT_SYMBOL(cpufreq_update_policy); -static int __cpuinit cpufreq_cpu_callback(struct notifier_block *nfb, - unsigned long action, void *hcpu) +static int cpufreq_cpu_callback(struct notifier_block *nfb, + unsigned long action, void *hcpu) { unsigned int cpu = (unsigned long)hcpu; struct device *dev; diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index fb65dec..ff50b0c 100644 --- a/drivers/cpufreq/cpufreq_stats.c +++ b/drivers/cpufreq/cpufreq_stats.c @@ -306,7 +306,7 @@ static int cpufreq_stat_notifier_policy(struct notifier_block *nb, } static int cpufreq_stat_notifier_trans(struct notifier_block *nb, - unsigned long val, void *data) + unsigned long val, void *data) { struct cpufreq_freqs *freq = data; struct cpufreq_stats *stat; @@ -341,7 +341,7 @@ static int cpufreq_stat_notifier_trans(struct notifier_block *nb, return 0; } -static int __cpuinit cpufreq_stat_cpu_callback(struct notifier_block *nfb, +static int cpufreq_stat_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu) { diff --git a/drivers/cpufreq/dbx500-cpufreq.c b/drivers/cpufreq/dbx500-cpufreq.c index 6ec6539..8c005ac 100644 --- a/drivers/cpufreq/dbx500-cpufreq.c +++ b/drivers/cpufreq/dbx500-cpufreq.c @@ -82,7 +82,7 @@ static unsigned int dbx500_cpufreq_getspeed(unsigned int cpu) return freq_table[i].frequency; } -static int __cpuinit dbx500_cpufreq_init(struct cpufreq_policy *policy) +static int dbx500_cpufreq_init(struct cpufreq_policy *policy) { int res; diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 07f2840..b012d76 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -617,7 +617,7 @@ static int intel_pstate_verify_policy(struct cpufreq_policy *policy) return 0; } -static int __cpuinit intel_pstate_cpu_exit(struct cpufreq_policy *policy) +static int intel_pstate_cpu_exit(struct cpufreq_policy *policy) { int cpu = policy->cpu; @@ -627,7 +627,7 @@ static int __cpuinit intel_pstate_cpu_exit(struct cpufreq_policy *policy) return 0; } -static int __cpuinit intel_pstate_cpu_init(struct cpufreq_policy *policy) +static int intel_pstate_cpu_init(struct cpufreq_policy *policy) { int rc, min_pstate, max_pstate; struct cpudata *cpu; diff --git a/drivers/cpufreq/longhaul.c b/drivers/cpufreq/longhaul.c index b6a0a7a..8c49261 100644 --- a/drivers/cpufreq/longhaul.c +++ b/drivers/cpufreq/longhaul.c @@ -422,7 +422,7 @@ static int guess_fsb(int mult) } -static int __cpuinit longhaul_get_ranges(void) +static int longhaul_get_ranges(void) { unsigned int i, j, k = 0; unsigned int ratio; @@ -526,7 +526,7 @@ static int __cpuinit longhaul_get_ranges(void) } -static void __cpuinit longhaul_setup_voltagescaling(void) +static void longhaul_setup_voltagescaling(void) { union msr_longhaul longhaul; struct mV_pos minvid, maxvid, vid; @@ -780,7 +780,7 @@ static int longhaul_setup_southbridge(void) return 0; } -static int __cpuinit longhaul_cpu_init(struct cpufreq_policy *policy) +static int longhaul_cpu_init(struct cpufreq_policy *policy) { struct cpuinfo_x86 *c = &cpu_data(0); char *cpuname = NULL; diff --git a/drivers/cpufreq/longhaul.h b/drivers/cpufreq/longhaul.h index e2dc436..1928b92 100644 --- a/drivers/cpufreq/longhaul.h +++ b/drivers/cpufreq/longhaul.h @@ -56,7 +56,7 @@ union msr_longhaul { /* * VIA C3 Samuel 1 & Samuel 2 (stepping 0) */ -static const int __cpuinitconst samuel1_mults[16] = { +static const int samuel1_mults[16] = { -1, /* 0000 -> RESERVED */ 30, /* 0001 -> 3.0x */ 40, /* 0010 -> 4.0x */ @@ -75,7 +75,7 @@ static const int __cpuinitconst samuel1_mults[16] = { -1, /* 1111 -> RESERVED */ }; -static const int __cpuinitconst samuel1_eblcr[16] = { +static const int samuel1_eblcr[16] = { 50, /* 0000 -> RESERVED */ 30, /* 0001 -> 3.0x */ 40, /* 0010 -> 4.0x */ @@ -97,7 +97,7 @@ static const int __cpuinitconst samuel1_eblcr[16] = { /* * VIA C3 Samuel2 Stepping 1->15 */ -static const int __cpuinitconst samuel2_eblcr[16] = { +static const int samuel2_eblcr[16] = { 50, /* 0000 -> 5.0x */ 30, /* 0001 -> 3.0x */ 40, /* 0010 -> 4.0x */ @@ -119,7 +119,7 @@ static const int __cpuinitconst samuel2_eblcr[16] = { /* * VIA C3 Ezra */ -static const int __cpuinitconst ezra_mults[16] = { +static const int ezra_mults[16] = { 100, /* 0000 -> 10.0x */ 30, /* 0001 -> 3.0x */ 40, /* 0010 -> 4.0x */ @@ -138,7 +138,7 @@ static const int __cpuinitconst ezra_mults[16] = { 120, /* 1111 -> 12.0x */ }; -static const int __cpuinitconst ezra_eblcr[16] = { +static const int ezra_eblcr[16] = { 50, /* 0000 -> 5.0x */ 30, /* 0001 -> 3.0x */ 40, /* 0010 -> 4.0x */ @@ -160,7 +160,7 @@ static const int __cpuinitconst ezra_eblcr[16] = { /* * VIA C3 (Ezra-T) [C5M]. */ -static const int __cpuinitconst ezrat_mults[32] = { +static const int ezrat_mults[32] = { 100, /* 0000 -> 10.0x */ 30, /* 0001 -> 3.0x */ 40, /* 0010 -> 4.0x */ @@ -196,7 +196,7 @@ static const int __cpuinitconst ezrat_mults[32] = { -1, /* 1111 -> RESERVED (12.0x) */ }; -static const int __cpuinitconst ezrat_eblcr[32] = { +static const int ezrat_eblcr[32] = { 50, /* 0000 -> 5.0x */ 30, /* 0001 -> 3.0x */ 40, /* 0010 -> 4.0x */ @@ -235,7 +235,7 @@ static const int __cpuinitconst ezrat_eblcr[32] = { /* * VIA C3 Nehemiah */ -static const int __cpuinitconst nehemiah_mults[32] = { +static const int nehemiah_mults[32] = { 100, /* 0000 -> 10.0x */ -1, /* 0001 -> 16.0x */ 40, /* 0010 -> 4.0x */ @@ -270,7 +270,7 @@ static const int __cpuinitconst nehemiah_mults[32] = { -1, /* 1111 -> 12.0x */ }; -static const int __cpuinitconst nehemiah_eblcr[32] = { +static const int nehemiah_eblcr[32] = { 50, /* 0000 -> 5.0x */ 160, /* 0001 -> 16.0x */ 40, /* 0010 -> 4.0x */ @@ -315,7 +315,7 @@ struct mV_pos { unsigned short pos; }; -static const struct mV_pos __cpuinitconst vrm85_mV[32] = { +static const struct mV_pos vrm85_mV[32] = { {1250, 8}, {1200, 6}, {1150, 4}, {1100, 2}, {1050, 0}, {1800, 30}, {1750, 28}, {1700, 26}, {1650, 24}, {1600, 22}, {1550, 20}, {1500, 18}, @@ -326,14 +326,14 @@ static const struct mV_pos __cpuinitconst vrm85_mV[32] = { {1475, 17}, {1425, 15}, {1375, 13}, {1325, 11} }; -static const unsigned char __cpuinitconst mV_vrm85[32] = { +static const unsigned char mV_vrm85[32] = { 0x04, 0x14, 0x03, 0x13, 0x02, 0x12, 0x01, 0x11, 0x00, 0x10, 0x0f, 0x1f, 0x0e, 0x1e, 0x0d, 0x1d, 0x0c, 0x1c, 0x0b, 0x1b, 0x0a, 0x1a, 0x09, 0x19, 0x08, 0x18, 0x07, 0x17, 0x06, 0x16, 0x05, 0x15 }; -static const struct mV_pos __cpuinitconst mobilevrm_mV[32] = { +static const struct mV_pos mobilevrm_mV[32] = { {1750, 31}, {1700, 30}, {1650, 29}, {1600, 28}, {1550, 27}, {1500, 26}, {1450, 25}, {1400, 24}, {1350, 23}, {1300, 22}, {1250, 21}, {1200, 20}, @@ -344,7 +344,7 @@ static const struct mV_pos __cpuinitconst mobilevrm_mV[32] = { {675, 3}, {650, 2}, {625, 1}, {600, 0} }; -static const unsigned char __cpuinitconst mV_mobilevrm[32] = { +static const unsigned char mV_mobilevrm[32] = { 0x1f, 0x1e, 0x1d, 0x1c, 0x1b, 0x1a, 0x19, 0x18, 0x17, 0x16, 0x15, 0x14, 0x13, 0x12, 0x11, 0x10, 0x0f, 0x0e, 0x0d, 0x0c, 0x0b, 0x0a, 0x09, 0x08, diff --git a/drivers/cpufreq/longrun.c b/drivers/cpufreq/longrun.c index 8bc9f5f..7ad792d 100644 --- a/drivers/cpufreq/longrun.c +++ b/drivers/cpufreq/longrun.c @@ -33,7 +33,7 @@ static unsigned int longrun_low_freq, longrun_high_freq; * Reads the current LongRun policy by access to MSR_TMTA_LONGRUN_FLAGS * and MSR_TMTA_LONGRUN_CTRL */ -static void __cpuinit longrun_get_policy(struct cpufreq_policy *policy) +static void longrun_get_policy(struct cpufreq_policy *policy) { u32 msr_lo, msr_hi; @@ -163,8 +163,8 @@ static unsigned int longrun_get(unsigned int cpu) * TMTA rules: * performance_pctg = (target_freq - low_freq)/(high_freq - low_freq) */ -static int __cpuinit longrun_determine_freqs(unsigned int *low_freq, - unsigned int *high_freq) +static int longrun_determine_freqs(unsigned int *low_freq, + unsigned int *high_freq) { u32 msr_lo, msr_hi; u32 save_lo, save_hi; @@ -256,7 +256,7 @@ static int __cpuinit longrun_determine_freqs(unsigned int *low_freq, } -static int __cpuinit longrun_cpu_init(struct cpufreq_policy *policy) +static int longrun_cpu_init(struct cpufreq_policy *policy) { int result = 0; diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index 0279d18..4b81d3e 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c @@ -165,7 +165,7 @@ static inline void freq_table_free(void) opp_free_cpufreq_table(mpu_dev, &freq_table); } -static int __cpuinit omap_cpu_init(struct cpufreq_policy *policy) +static int omap_cpu_init(struct cpufreq_policy *policy) { int result = 0; diff --git a/drivers/cpufreq/powernow-k7.c b/drivers/cpufreq/powernow-k7.c index b9f80b7..9558708 100644 --- a/drivers/cpufreq/powernow-k7.c +++ b/drivers/cpufreq/powernow-k7.c @@ -563,7 +563,7 @@ static int powernow_verify(struct cpufreq_policy *policy) * We will then get the same kind of behaviour already tested under * the "well-known" other OS. */ -static int __cpuinit fixup_sgtc(void) +static int fixup_sgtc(void) { unsigned int sgtc; unsigned int m; @@ -597,7 +597,7 @@ static unsigned int powernow_get(unsigned int cpu) } -static int __cpuinit acer_cpufreq_pst(const struct dmi_system_id *d) +static int acer_cpufreq_pst(const struct dmi_system_id *d) { printk(KERN_WARNING PFX "%s laptop with broken PST tables in BIOS detected.\n", @@ -615,7 +615,7 @@ static int __cpuinit acer_cpufreq_pst(const struct dmi_system_id *d) * A BIOS update is all that can save them. * Mention this, and disable cpufreq. */ -static struct dmi_system_id __cpuinitdata powernow_dmi_table[] = { +static struct dmi_system_id powernow_dmi_table[] = { { .callback = acer_cpufreq_pst, .ident = "Acer Aspire", @@ -627,7 +627,7 @@ static struct dmi_system_id __cpuinitdata powernow_dmi_table[] = { { } }; -static int __cpuinit powernow_cpu_init(struct cpufreq_policy *policy) +static int powernow_cpu_init(struct cpufreq_policy *policy) { union msr_fidvidstatus fidvidstatus; int result; diff --git a/drivers/cpufreq/powernow-k8.c b/drivers/cpufreq/powernow-k8.c index 51343a1..c71907f 100644 --- a/drivers/cpufreq/powernow-k8.c +++ b/drivers/cpufreq/powernow-k8.c @@ -1069,7 +1069,7 @@ struct init_on_cpu { int rc; }; -static void __cpuinit powernowk8_cpu_init_on_cpu(void *_init_on_cpu) +static void powernowk8_cpu_init_on_cpu(void *_init_on_cpu) { struct init_on_cpu *init_on_cpu = _init_on_cpu; @@ -1096,7 +1096,7 @@ static const char missing_pss_msg[] = FW_BUG PFX "If that doesn't help, try upgrading your BIOS.\n"; /* per CPU init entry point to the driver */ -static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol) +static int powernowk8_cpu_init(struct cpufreq_policy *pol) { struct powernow_k8_data *data; struct init_on_cpu init_on_cpu; @@ -1263,7 +1263,7 @@ static void __request_acpi_cpufreq(void) } /* driver entry point for init */ -static int __cpuinit powernowk8_init(void) +static int powernowk8_init(void) { unsigned int i, supported_cpus = 0; int ret; -- 1.8.1.2 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 25/32] cpufreq: delete __cpuinit usage from all cpufreq files 2013-06-24 19:30 ` [PATCH 25/32] cpufreq: delete __cpuinit usage from all cpufreq files Paul Gortmaker @ 2013-06-24 22:42 ` Dirk Brandewie 2013-06-25 3:31 ` Viresh Kumar 1 sibling, 0 replies; 10+ messages in thread From: Dirk Brandewie @ 2013-06-24 22:42 UTC (permalink / raw) To: Paul Gortmaker Cc: linux-kernel, Rafael J. Wysocki, Viresh Kumar, cpufreq, linux-pm, dirk.brandewie On 06/24/2013 12:30 PM, Paul Gortmaker wrote: > The __cpuinit type of throwaway sections might have made sense > some time ago when RAM was more constrained, but now the savings > do not offset the cost and complications. For example, the fix in > commit 5e427ec2d0 ("x86: Fix bit corruption at CPU resume time") > is a good example of the nasty type of bugs that can be created > with improper use of the various __init prefixes. > > After a discussion on LKML[1] it was decided that cpuinit should go > the way of devinit and be phased out. Once all the users are gone, > we can then finally remove the macros themselves from linux/init.h. > > This removes all the drivers/cpufreq uses of the __cpuinit macros > from all C files. > > [1] https://lkml.org/lkml/2013/5/20/589 > > Cc: "Rafael J. Wysocki" <rjw@sisk.pl> > Cc: Viresh Kumar <viresh.kumar@linaro.org> > Cc: cpufreq@vger.kernel.org > Cc: linux-pm@vger.kernel.org > Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> For the intel_pstate portion Acked-by: Dirk Brandewie <dirk.j.brandewie@intel.com> > --- > > [This commit is part of the __cpuinit removal work. If you don't see > any problems with it, then you don't have to do anything ; it will be > submitted with all the rest of the __cpuinit removal work. On the > other hand, if you want to carry this patch in with your other pending > changes so as to handle conflicts with other pending work yourself, then > that is fine too, as the commits can largely be treated independently. > For more information, please see: https://lkml.org/lkml/2013/6/20/513 ] > > drivers/cpufreq/cpufreq.c | 4 ++-- > drivers/cpufreq/cpufreq_stats.c | 4 ++-- > drivers/cpufreq/dbx500-cpufreq.c | 2 +- > drivers/cpufreq/intel_pstate.c | 4 ++-- > drivers/cpufreq/longhaul.c | 6 +++--- > drivers/cpufreq/longhaul.h | 26 +++++++++++++------------- > drivers/cpufreq/longrun.c | 8 ++++---- > drivers/cpufreq/omap-cpufreq.c | 2 +- > drivers/cpufreq/powernow-k7.c | 8 ++++---- > drivers/cpufreq/powernow-k8.c | 6 +++--- > 10 files changed, 35 insertions(+), 35 deletions(-) > > diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c > index f8c2860..5687d28 100644 > --- a/drivers/cpufreq/cpufreq.c > +++ b/drivers/cpufreq/cpufreq.c > @@ -1900,8 +1900,8 @@ no_policy: > } > EXPORT_SYMBOL(cpufreq_update_policy); > > -static int __cpuinit cpufreq_cpu_callback(struct notifier_block *nfb, > - unsigned long action, void *hcpu) > +static int cpufreq_cpu_callback(struct notifier_block *nfb, > + unsigned long action, void *hcpu) > { > unsigned int cpu = (unsigned long)hcpu; > struct device *dev; > diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c > index fb65dec..ff50b0c 100644 > --- a/drivers/cpufreq/cpufreq_stats.c > +++ b/drivers/cpufreq/cpufreq_stats.c > @@ -306,7 +306,7 @@ static int cpufreq_stat_notifier_policy(struct notifier_block *nb, > } > > static int cpufreq_stat_notifier_trans(struct notifier_block *nb, > - unsigned long val, void *data) > + unsigned long val, void *data) > { > struct cpufreq_freqs *freq = data; > struct cpufreq_stats *stat; > @@ -341,7 +341,7 @@ static int cpufreq_stat_notifier_trans(struct notifier_block *nb, > return 0; > } > > -static int __cpuinit cpufreq_stat_cpu_callback(struct notifier_block *nfb, > +static int cpufreq_stat_cpu_callback(struct notifier_block *nfb, > unsigned long action, > void *hcpu) > { > diff --git a/drivers/cpufreq/dbx500-cpufreq.c b/drivers/cpufreq/dbx500-cpufreq.c > index 6ec6539..8c005ac 100644 > --- a/drivers/cpufreq/dbx500-cpufreq.c > +++ b/drivers/cpufreq/dbx500-cpufreq.c > @@ -82,7 +82,7 @@ static unsigned int dbx500_cpufreq_getspeed(unsigned int cpu) > return freq_table[i].frequency; > } > > -static int __cpuinit dbx500_cpufreq_init(struct cpufreq_policy *policy) > +static int dbx500_cpufreq_init(struct cpufreq_policy *policy) > { > int res; > > diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c > index 07f2840..b012d76 100644 > --- a/drivers/cpufreq/intel_pstate.c > +++ b/drivers/cpufreq/intel_pstate.c > @@ -617,7 +617,7 @@ static int intel_pstate_verify_policy(struct cpufreq_policy *policy) > return 0; > } > > -static int __cpuinit intel_pstate_cpu_exit(struct cpufreq_policy *policy) > +static int intel_pstate_cpu_exit(struct cpufreq_policy *policy) > { > int cpu = policy->cpu; > > @@ -627,7 +627,7 @@ static int __cpuinit intel_pstate_cpu_exit(struct cpufreq_policy *policy) > return 0; > } > > -static int __cpuinit intel_pstate_cpu_init(struct cpufreq_policy *policy) > +static int intel_pstate_cpu_init(struct cpufreq_policy *policy) > { > int rc, min_pstate, max_pstate; > struct cpudata *cpu; > diff --git a/drivers/cpufreq/longhaul.c b/drivers/cpufreq/longhaul.c > index b6a0a7a..8c49261 100644 > --- a/drivers/cpufreq/longhaul.c > +++ b/drivers/cpufreq/longhaul.c > @@ -422,7 +422,7 @@ static int guess_fsb(int mult) > } > > > -static int __cpuinit longhaul_get_ranges(void) > +static int longhaul_get_ranges(void) > { > unsigned int i, j, k = 0; > unsigned int ratio; > @@ -526,7 +526,7 @@ static int __cpuinit longhaul_get_ranges(void) > } > > > -static void __cpuinit longhaul_setup_voltagescaling(void) > +static void longhaul_setup_voltagescaling(void) > { > union msr_longhaul longhaul; > struct mV_pos minvid, maxvid, vid; > @@ -780,7 +780,7 @@ static int longhaul_setup_southbridge(void) > return 0; > } > > -static int __cpuinit longhaul_cpu_init(struct cpufreq_policy *policy) > +static int longhaul_cpu_init(struct cpufreq_policy *policy) > { > struct cpuinfo_x86 *c = &cpu_data(0); > char *cpuname = NULL; > diff --git a/drivers/cpufreq/longhaul.h b/drivers/cpufreq/longhaul.h > index e2dc436..1928b92 100644 > --- a/drivers/cpufreq/longhaul.h > +++ b/drivers/cpufreq/longhaul.h > @@ -56,7 +56,7 @@ union msr_longhaul { > /* > * VIA C3 Samuel 1 & Samuel 2 (stepping 0) > */ > -static const int __cpuinitconst samuel1_mults[16] = { > +static const int samuel1_mults[16] = { > -1, /* 0000 -> RESERVED */ > 30, /* 0001 -> 3.0x */ > 40, /* 0010 -> 4.0x */ > @@ -75,7 +75,7 @@ static const int __cpuinitconst samuel1_mults[16] = { > -1, /* 1111 -> RESERVED */ > }; > > -static const int __cpuinitconst samuel1_eblcr[16] = { > +static const int samuel1_eblcr[16] = { > 50, /* 0000 -> RESERVED */ > 30, /* 0001 -> 3.0x */ > 40, /* 0010 -> 4.0x */ > @@ -97,7 +97,7 @@ static const int __cpuinitconst samuel1_eblcr[16] = { > /* > * VIA C3 Samuel2 Stepping 1->15 > */ > -static const int __cpuinitconst samuel2_eblcr[16] = { > +static const int samuel2_eblcr[16] = { > 50, /* 0000 -> 5.0x */ > 30, /* 0001 -> 3.0x */ > 40, /* 0010 -> 4.0x */ > @@ -119,7 +119,7 @@ static const int __cpuinitconst samuel2_eblcr[16] = { > /* > * VIA C3 Ezra > */ > -static const int __cpuinitconst ezra_mults[16] = { > +static const int ezra_mults[16] = { > 100, /* 0000 -> 10.0x */ > 30, /* 0001 -> 3.0x */ > 40, /* 0010 -> 4.0x */ > @@ -138,7 +138,7 @@ static const int __cpuinitconst ezra_mults[16] = { > 120, /* 1111 -> 12.0x */ > }; > > -static const int __cpuinitconst ezra_eblcr[16] = { > +static const int ezra_eblcr[16] = { > 50, /* 0000 -> 5.0x */ > 30, /* 0001 -> 3.0x */ > 40, /* 0010 -> 4.0x */ > @@ -160,7 +160,7 @@ static const int __cpuinitconst ezra_eblcr[16] = { > /* > * VIA C3 (Ezra-T) [C5M]. > */ > -static const int __cpuinitconst ezrat_mults[32] = { > +static const int ezrat_mults[32] = { > 100, /* 0000 -> 10.0x */ > 30, /* 0001 -> 3.0x */ > 40, /* 0010 -> 4.0x */ > @@ -196,7 +196,7 @@ static const int __cpuinitconst ezrat_mults[32] = { > -1, /* 1111 -> RESERVED (12.0x) */ > }; > > -static const int __cpuinitconst ezrat_eblcr[32] = { > +static const int ezrat_eblcr[32] = { > 50, /* 0000 -> 5.0x */ > 30, /* 0001 -> 3.0x */ > 40, /* 0010 -> 4.0x */ > @@ -235,7 +235,7 @@ static const int __cpuinitconst ezrat_eblcr[32] = { > /* > * VIA C3 Nehemiah */ > > -static const int __cpuinitconst nehemiah_mults[32] = { > +static const int nehemiah_mults[32] = { > 100, /* 0000 -> 10.0x */ > -1, /* 0001 -> 16.0x */ > 40, /* 0010 -> 4.0x */ > @@ -270,7 +270,7 @@ static const int __cpuinitconst nehemiah_mults[32] = { > -1, /* 1111 -> 12.0x */ > }; > > -static const int __cpuinitconst nehemiah_eblcr[32] = { > +static const int nehemiah_eblcr[32] = { > 50, /* 0000 -> 5.0x */ > 160, /* 0001 -> 16.0x */ > 40, /* 0010 -> 4.0x */ > @@ -315,7 +315,7 @@ struct mV_pos { > unsigned short pos; > }; > > -static const struct mV_pos __cpuinitconst vrm85_mV[32] = { > +static const struct mV_pos vrm85_mV[32] = { > {1250, 8}, {1200, 6}, {1150, 4}, {1100, 2}, > {1050, 0}, {1800, 30}, {1750, 28}, {1700, 26}, > {1650, 24}, {1600, 22}, {1550, 20}, {1500, 18}, > @@ -326,14 +326,14 @@ static const struct mV_pos __cpuinitconst vrm85_mV[32] = { > {1475, 17}, {1425, 15}, {1375, 13}, {1325, 11} > }; > > -static const unsigned char __cpuinitconst mV_vrm85[32] = { > +static const unsigned char mV_vrm85[32] = { > 0x04, 0x14, 0x03, 0x13, 0x02, 0x12, 0x01, 0x11, > 0x00, 0x10, 0x0f, 0x1f, 0x0e, 0x1e, 0x0d, 0x1d, > 0x0c, 0x1c, 0x0b, 0x1b, 0x0a, 0x1a, 0x09, 0x19, > 0x08, 0x18, 0x07, 0x17, 0x06, 0x16, 0x05, 0x15 > }; > > -static const struct mV_pos __cpuinitconst mobilevrm_mV[32] = { > +static const struct mV_pos mobilevrm_mV[32] = { > {1750, 31}, {1700, 30}, {1650, 29}, {1600, 28}, > {1550, 27}, {1500, 26}, {1450, 25}, {1400, 24}, > {1350, 23}, {1300, 22}, {1250, 21}, {1200, 20}, > @@ -344,7 +344,7 @@ static const struct mV_pos __cpuinitconst mobilevrm_mV[32] = { > {675, 3}, {650, 2}, {625, 1}, {600, 0} > }; > > -static const unsigned char __cpuinitconst mV_mobilevrm[32] = { > +static const unsigned char mV_mobilevrm[32] = { > 0x1f, 0x1e, 0x1d, 0x1c, 0x1b, 0x1a, 0x19, 0x18, > 0x17, 0x16, 0x15, 0x14, 0x13, 0x12, 0x11, 0x10, > 0x0f, 0x0e, 0x0d, 0x0c, 0x0b, 0x0a, 0x09, 0x08, > diff --git a/drivers/cpufreq/longrun.c b/drivers/cpufreq/longrun.c > index 8bc9f5f..7ad792d 100644 > --- a/drivers/cpufreq/longrun.c > +++ b/drivers/cpufreq/longrun.c > @@ -33,7 +33,7 @@ static unsigned int longrun_low_freq, longrun_high_freq; > * Reads the current LongRun policy by access to MSR_TMTA_LONGRUN_FLAGS > * and MSR_TMTA_LONGRUN_CTRL > */ > -static void __cpuinit longrun_get_policy(struct cpufreq_policy *policy) > +static void longrun_get_policy(struct cpufreq_policy *policy) > { > u32 msr_lo, msr_hi; > > @@ -163,8 +163,8 @@ static unsigned int longrun_get(unsigned int cpu) > * TMTA rules: > * performance_pctg = (target_freq - low_freq)/(high_freq - low_freq) > */ > -static int __cpuinit longrun_determine_freqs(unsigned int *low_freq, > - unsigned int *high_freq) > +static int longrun_determine_freqs(unsigned int *low_freq, > + unsigned int *high_freq) > { > u32 msr_lo, msr_hi; > u32 save_lo, save_hi; > @@ -256,7 +256,7 @@ static int __cpuinit longrun_determine_freqs(unsigned int *low_freq, > } > > > -static int __cpuinit longrun_cpu_init(struct cpufreq_policy *policy) > +static int longrun_cpu_init(struct cpufreq_policy *policy) > { > int result = 0; > > diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c > index 0279d18..4b81d3e 100644 > --- a/drivers/cpufreq/omap-cpufreq.c > +++ b/drivers/cpufreq/omap-cpufreq.c > @@ -165,7 +165,7 @@ static inline void freq_table_free(void) > opp_free_cpufreq_table(mpu_dev, &freq_table); > } > > -static int __cpuinit omap_cpu_init(struct cpufreq_policy *policy) > +static int omap_cpu_init(struct cpufreq_policy *policy) > { > int result = 0; > > diff --git a/drivers/cpufreq/powernow-k7.c b/drivers/cpufreq/powernow-k7.c > index b9f80b7..9558708 100644 > --- a/drivers/cpufreq/powernow-k7.c > +++ b/drivers/cpufreq/powernow-k7.c > @@ -563,7 +563,7 @@ static int powernow_verify(struct cpufreq_policy *policy) > * We will then get the same kind of behaviour already tested under > * the "well-known" other OS. > */ > -static int __cpuinit fixup_sgtc(void) > +static int fixup_sgtc(void) > { > unsigned int sgtc; > unsigned int m; > @@ -597,7 +597,7 @@ static unsigned int powernow_get(unsigned int cpu) > } > > > -static int __cpuinit acer_cpufreq_pst(const struct dmi_system_id *d) > +static int acer_cpufreq_pst(const struct dmi_system_id *d) > { > printk(KERN_WARNING PFX > "%s laptop with broken PST tables in BIOS detected.\n", > @@ -615,7 +615,7 @@ static int __cpuinit acer_cpufreq_pst(const struct dmi_system_id *d) > * A BIOS update is all that can save them. > * Mention this, and disable cpufreq. > */ > -static struct dmi_system_id __cpuinitdata powernow_dmi_table[] = { > +static struct dmi_system_id powernow_dmi_table[] = { > { > .callback = acer_cpufreq_pst, > .ident = "Acer Aspire", > @@ -627,7 +627,7 @@ static struct dmi_system_id __cpuinitdata powernow_dmi_table[] = { > { } > }; > > -static int __cpuinit powernow_cpu_init(struct cpufreq_policy *policy) > +static int powernow_cpu_init(struct cpufreq_policy *policy) > { > union msr_fidvidstatus fidvidstatus; > int result; > diff --git a/drivers/cpufreq/powernow-k8.c b/drivers/cpufreq/powernow-k8.c > index 51343a1..c71907f 100644 > --- a/drivers/cpufreq/powernow-k8.c > +++ b/drivers/cpufreq/powernow-k8.c > @@ -1069,7 +1069,7 @@ struct init_on_cpu { > int rc; > }; > > -static void __cpuinit powernowk8_cpu_init_on_cpu(void *_init_on_cpu) > +static void powernowk8_cpu_init_on_cpu(void *_init_on_cpu) > { > struct init_on_cpu *init_on_cpu = _init_on_cpu; > > @@ -1096,7 +1096,7 @@ static const char missing_pss_msg[] = > FW_BUG PFX "If that doesn't help, try upgrading your BIOS.\n"; > > /* per CPU init entry point to the driver */ > -static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol) > +static int powernowk8_cpu_init(struct cpufreq_policy *pol) > { > struct powernow_k8_data *data; > struct init_on_cpu init_on_cpu; > @@ -1263,7 +1263,7 @@ static void __request_acpi_cpufreq(void) > } > > /* driver entry point for init */ > -static int __cpuinit powernowk8_init(void) > +static int powernowk8_init(void) > { > unsigned int i, supported_cpus = 0; > int ret; > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 25/32] cpufreq: delete __cpuinit usage from all cpufreq files 2013-06-24 19:30 ` [PATCH 25/32] cpufreq: delete __cpuinit usage from all cpufreq files Paul Gortmaker 2013-06-24 22:42 ` Dirk Brandewie @ 2013-06-25 3:31 ` Viresh Kumar 2013-06-25 4:15 ` Joe Perches 2013-06-25 14:30 ` Paul Gortmaker 1 sibling, 2 replies; 10+ messages in thread From: Viresh Kumar @ 2013-06-25 3:31 UTC (permalink / raw) To: Paul Gortmaker; +Cc: linux-kernel, Rafael J. Wysocki, cpufreq, linux-pm On 25 June 2013 01:00, Paul Gortmaker <paul.gortmaker@windriver.com> wrote: > diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c > index f8c2860..5687d28 100644 > --- a/drivers/cpufreq/cpufreq.c > +++ b/drivers/cpufreq/cpufreq.c > @@ -1900,8 +1900,8 @@ no_policy: > } > EXPORT_SYMBOL(cpufreq_update_policy); > > -static int __cpuinit cpufreq_cpu_callback(struct notifier_block *nfb, > - unsigned long action, void *hcpu) > +static int cpufreq_cpu_callback(struct notifier_block *nfb, > + unsigned long action, void *hcpu) You were not required to change second line here and also don't change its indentation level. Check this everywhere. > { > unsigned int cpu = (unsigned long)hcpu; > struct device *dev; > diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c > index fb65dec..ff50b0c 100644 > --- a/drivers/cpufreq/cpufreq_stats.c > +++ b/drivers/cpufreq/cpufreq_stats.c > @@ -306,7 +306,7 @@ static int cpufreq_stat_notifier_policy(struct notifier_block *nb, > } > > static int cpufreq_stat_notifier_trans(struct notifier_block *nb, > - unsigned long val, void *data) > + unsigned long val, void *data) See.. unnecessary change. > { > struct cpufreq_freqs *freq = data; > struct cpufreq_stats *stat; > @@ -341,7 +341,7 @@ static int cpufreq_stat_notifier_trans(struct notifier_block *nb, > return 0; > } > > -static int __cpuinit cpufreq_stat_cpu_callback(struct notifier_block *nfb, > +static int cpufreq_stat_cpu_callback(struct notifier_block *nfb, > unsigned long action, > void *hcpu) > { > diff --git a/drivers/cpufreq/dbx500-cpufreq.c b/drivers/cpufreq/dbx500-cpufreq.c > index 6ec6539..8c005ac 100644 > --- a/drivers/cpufreq/dbx500-cpufreq.c > +++ b/drivers/cpufreq/dbx500-cpufreq.c > @@ -82,7 +82,7 @@ static unsigned int dbx500_cpufreq_getspeed(unsigned int cpu) > return freq_table[i].frequency; > } > > -static int __cpuinit dbx500_cpufreq_init(struct cpufreq_policy *policy) > +static int dbx500_cpufreq_init(struct cpufreq_policy *policy) > { > int res; > > diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c > index 07f2840..b012d76 100644 > --- a/drivers/cpufreq/intel_pstate.c > +++ b/drivers/cpufreq/intel_pstate.c > @@ -617,7 +617,7 @@ static int intel_pstate_verify_policy(struct cpufreq_policy *policy) > return 0; > } > > -static int __cpuinit intel_pstate_cpu_exit(struct cpufreq_policy *policy) > +static int intel_pstate_cpu_exit(struct cpufreq_policy *policy) > { > int cpu = policy->cpu; > > @@ -627,7 +627,7 @@ static int __cpuinit intel_pstate_cpu_exit(struct cpufreq_policy *policy) > return 0; > } > > -static int __cpuinit intel_pstate_cpu_init(struct cpufreq_policy *policy) > +static int intel_pstate_cpu_init(struct cpufreq_policy *policy) > { > int rc, min_pstate, max_pstate; > struct cpudata *cpu; > diff --git a/drivers/cpufreq/longhaul.c b/drivers/cpufreq/longhaul.c > index b6a0a7a..8c49261 100644 > --- a/drivers/cpufreq/longhaul.c > +++ b/drivers/cpufreq/longhaul.c > @@ -422,7 +422,7 @@ static int guess_fsb(int mult) > } > > > -static int __cpuinit longhaul_get_ranges(void) > +static int longhaul_get_ranges(void) > { > unsigned int i, j, k = 0; > unsigned int ratio; > @@ -526,7 +526,7 @@ static int __cpuinit longhaul_get_ranges(void) > } > > > -static void __cpuinit longhaul_setup_voltagescaling(void) > +static void longhaul_setup_voltagescaling(void) > { > union msr_longhaul longhaul; > struct mV_pos minvid, maxvid, vid; > @@ -780,7 +780,7 @@ static int longhaul_setup_southbridge(void) > return 0; > } > > -static int __cpuinit longhaul_cpu_init(struct cpufreq_policy *policy) > +static int longhaul_cpu_init(struct cpufreq_policy *policy) > { > struct cpuinfo_x86 *c = &cpu_data(0); > char *cpuname = NULL; > diff --git a/drivers/cpufreq/longhaul.h b/drivers/cpufreq/longhaul.h > index e2dc436..1928b92 100644 > --- a/drivers/cpufreq/longhaul.h > +++ b/drivers/cpufreq/longhaul.h > @@ -56,7 +56,7 @@ union msr_longhaul { > /* > * VIA C3 Samuel 1 & Samuel 2 (stepping 0) > */ > -static const int __cpuinitconst samuel1_mults[16] = { > +static const int samuel1_mults[16] = { > -1, /* 0000 -> RESERVED */ > 30, /* 0001 -> 3.0x */ > 40, /* 0010 -> 4.0x */ > @@ -75,7 +75,7 @@ static const int __cpuinitconst samuel1_mults[16] = { > -1, /* 1111 -> RESERVED */ > }; > > -static const int __cpuinitconst samuel1_eblcr[16] = { > +static const int samuel1_eblcr[16] = { > 50, /* 0000 -> RESERVED */ > 30, /* 0001 -> 3.0x */ > 40, /* 0010 -> 4.0x */ > @@ -97,7 +97,7 @@ static const int __cpuinitconst samuel1_eblcr[16] = { > /* > * VIA C3 Samuel2 Stepping 1->15 > */ > -static const int __cpuinitconst samuel2_eblcr[16] = { > +static const int samuel2_eblcr[16] = { > 50, /* 0000 -> 5.0x */ > 30, /* 0001 -> 3.0x */ > 40, /* 0010 -> 4.0x */ > @@ -119,7 +119,7 @@ static const int __cpuinitconst samuel2_eblcr[16] = { > /* > * VIA C3 Ezra > */ > -static const int __cpuinitconst ezra_mults[16] = { > +static const int ezra_mults[16] = { > 100, /* 0000 -> 10.0x */ > 30, /* 0001 -> 3.0x */ > 40, /* 0010 -> 4.0x */ > @@ -138,7 +138,7 @@ static const int __cpuinitconst ezra_mults[16] = { > 120, /* 1111 -> 12.0x */ > }; > > -static const int __cpuinitconst ezra_eblcr[16] = { > +static const int ezra_eblcr[16] = { > 50, /* 0000 -> 5.0x */ > 30, /* 0001 -> 3.0x */ > 40, /* 0010 -> 4.0x */ > @@ -160,7 +160,7 @@ static const int __cpuinitconst ezra_eblcr[16] = { > /* > * VIA C3 (Ezra-T) [C5M]. > */ > -static const int __cpuinitconst ezrat_mults[32] = { > +static const int ezrat_mults[32] = { > 100, /* 0000 -> 10.0x */ > 30, /* 0001 -> 3.0x */ > 40, /* 0010 -> 4.0x */ > @@ -196,7 +196,7 @@ static const int __cpuinitconst ezrat_mults[32] = { > -1, /* 1111 -> RESERVED (12.0x) */ > }; > > -static const int __cpuinitconst ezrat_eblcr[32] = { > +static const int ezrat_eblcr[32] = { > 50, /* 0000 -> 5.0x */ > 30, /* 0001 -> 3.0x */ > 40, /* 0010 -> 4.0x */ > @@ -235,7 +235,7 @@ static const int __cpuinitconst ezrat_eblcr[32] = { > /* > * VIA C3 Nehemiah */ > > -static const int __cpuinitconst nehemiah_mults[32] = { > +static const int nehemiah_mults[32] = { > 100, /* 0000 -> 10.0x */ > -1, /* 0001 -> 16.0x */ > 40, /* 0010 -> 4.0x */ > @@ -270,7 +270,7 @@ static const int __cpuinitconst nehemiah_mults[32] = { > -1, /* 1111 -> 12.0x */ > }; > > -static const int __cpuinitconst nehemiah_eblcr[32] = { > +static const int nehemiah_eblcr[32] = { > 50, /* 0000 -> 5.0x */ > 160, /* 0001 -> 16.0x */ > 40, /* 0010 -> 4.0x */ > @@ -315,7 +315,7 @@ struct mV_pos { > unsigned short pos; > }; > > -static const struct mV_pos __cpuinitconst vrm85_mV[32] = { > +static const struct mV_pos vrm85_mV[32] = { > {1250, 8}, {1200, 6}, {1150, 4}, {1100, 2}, > {1050, 0}, {1800, 30}, {1750, 28}, {1700, 26}, > {1650, 24}, {1600, 22}, {1550, 20}, {1500, 18}, > @@ -326,14 +326,14 @@ static const struct mV_pos __cpuinitconst vrm85_mV[32] = { > {1475, 17}, {1425, 15}, {1375, 13}, {1325, 11} > }; > > -static const unsigned char __cpuinitconst mV_vrm85[32] = { > +static const unsigned char mV_vrm85[32] = { > 0x04, 0x14, 0x03, 0x13, 0x02, 0x12, 0x01, 0x11, > 0x00, 0x10, 0x0f, 0x1f, 0x0e, 0x1e, 0x0d, 0x1d, > 0x0c, 0x1c, 0x0b, 0x1b, 0x0a, 0x1a, 0x09, 0x19, > 0x08, 0x18, 0x07, 0x17, 0x06, 0x16, 0x05, 0x15 > }; > > -static const struct mV_pos __cpuinitconst mobilevrm_mV[32] = { > +static const struct mV_pos mobilevrm_mV[32] = { > {1750, 31}, {1700, 30}, {1650, 29}, {1600, 28}, > {1550, 27}, {1500, 26}, {1450, 25}, {1400, 24}, > {1350, 23}, {1300, 22}, {1250, 21}, {1200, 20}, > @@ -344,7 +344,7 @@ static const struct mV_pos __cpuinitconst mobilevrm_mV[32] = { > {675, 3}, {650, 2}, {625, 1}, {600, 0} > }; > > -static const unsigned char __cpuinitconst mV_mobilevrm[32] = { > +static const unsigned char mV_mobilevrm[32] = { > 0x1f, 0x1e, 0x1d, 0x1c, 0x1b, 0x1a, 0x19, 0x18, > 0x17, 0x16, 0x15, 0x14, 0x13, 0x12, 0x11, 0x10, > 0x0f, 0x0e, 0x0d, 0x0c, 0x0b, 0x0a, 0x09, 0x08, > diff --git a/drivers/cpufreq/longrun.c b/drivers/cpufreq/longrun.c > index 8bc9f5f..7ad792d 100644 > --- a/drivers/cpufreq/longrun.c > +++ b/drivers/cpufreq/longrun.c > @@ -33,7 +33,7 @@ static unsigned int longrun_low_freq, longrun_high_freq; > * Reads the current LongRun policy by access to MSR_TMTA_LONGRUN_FLAGS > * and MSR_TMTA_LONGRUN_CTRL > */ > -static void __cpuinit longrun_get_policy(struct cpufreq_policy *policy) > +static void longrun_get_policy(struct cpufreq_policy *policy) > { > u32 msr_lo, msr_hi; > > @@ -163,8 +163,8 @@ static unsigned int longrun_get(unsigned int cpu) > * TMTA rules: > * performance_pctg = (target_freq - low_freq)/(high_freq - low_freq) > */ > -static int __cpuinit longrun_determine_freqs(unsigned int *low_freq, > - unsigned int *high_freq) > +static int longrun_determine_freqs(unsigned int *low_freq, > + unsigned int *high_freq) again > { > u32 msr_lo, msr_hi; > u32 save_lo, save_hi; > @@ -256,7 +256,7 @@ static int __cpuinit longrun_determine_freqs(unsigned int *low_freq, > } > > > -static int __cpuinit longrun_cpu_init(struct cpufreq_policy *policy) > +static int longrun_cpu_init(struct cpufreq_policy *policy) > { > int result = 0; > > diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c > index 0279d18..4b81d3e 100644 > --- a/drivers/cpufreq/omap-cpufreq.c > +++ b/drivers/cpufreq/omap-cpufreq.c > @@ -165,7 +165,7 @@ static inline void freq_table_free(void) > opp_free_cpufreq_table(mpu_dev, &freq_table); > } > > -static int __cpuinit omap_cpu_init(struct cpufreq_policy *policy) > +static int omap_cpu_init(struct cpufreq_policy *policy) > { > int result = 0; > > diff --git a/drivers/cpufreq/powernow-k7.c b/drivers/cpufreq/powernow-k7.c > index b9f80b7..9558708 100644 > --- a/drivers/cpufreq/powernow-k7.c > +++ b/drivers/cpufreq/powernow-k7.c > @@ -563,7 +563,7 @@ static int powernow_verify(struct cpufreq_policy *policy) > * We will then get the same kind of behaviour already tested under > * the "well-known" other OS. > */ > -static int __cpuinit fixup_sgtc(void) > +static int fixup_sgtc(void) > { > unsigned int sgtc; > unsigned int m; > @@ -597,7 +597,7 @@ static unsigned int powernow_get(unsigned int cpu) > } > > > -static int __cpuinit acer_cpufreq_pst(const struct dmi_system_id *d) > +static int acer_cpufreq_pst(const struct dmi_system_id *d) > { > printk(KERN_WARNING PFX > "%s laptop with broken PST tables in BIOS detected.\n", > @@ -615,7 +615,7 @@ static int __cpuinit acer_cpufreq_pst(const struct dmi_system_id *d) > * A BIOS update is all that can save them. > * Mention this, and disable cpufreq. > */ > -static struct dmi_system_id __cpuinitdata powernow_dmi_table[] = { > +static struct dmi_system_id powernow_dmi_table[] = { > { > .callback = acer_cpufreq_pst, > .ident = "Acer Aspire", > @@ -627,7 +627,7 @@ static struct dmi_system_id __cpuinitdata powernow_dmi_table[] = { > { } > }; > > -static int __cpuinit powernow_cpu_init(struct cpufreq_policy *policy) > +static int powernow_cpu_init(struct cpufreq_policy *policy) > { > union msr_fidvidstatus fidvidstatus; > int result; > diff --git a/drivers/cpufreq/powernow-k8.c b/drivers/cpufreq/powernow-k8.c > index 51343a1..c71907f 100644 > --- a/drivers/cpufreq/powernow-k8.c > +++ b/drivers/cpufreq/powernow-k8.c > @@ -1069,7 +1069,7 @@ struct init_on_cpu { > int rc; > }; > > -static void __cpuinit powernowk8_cpu_init_on_cpu(void *_init_on_cpu) > +static void powernowk8_cpu_init_on_cpu(void *_init_on_cpu) > { > struct init_on_cpu *init_on_cpu = _init_on_cpu; > > @@ -1096,7 +1096,7 @@ static const char missing_pss_msg[] = > FW_BUG PFX "If that doesn't help, try upgrading your BIOS.\n"; > > /* per CPU init entry point to the driver */ > -static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol) > +static int powernowk8_cpu_init(struct cpufreq_policy *pol) > { > struct powernow_k8_data *data; > struct init_on_cpu init_on_cpu; > @@ -1263,7 +1263,7 @@ static void __request_acpi_cpufreq(void) > } > > /* driver entry point for init */ > -static int __cpuinit powernowk8_init(void) > +static int powernowk8_init(void) > { > unsigned int i, supported_cpus = 0; > int ret; Fix these and add my Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Probably this can go through Rafael's pm tree. So, you can take it out of this series if you want. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 25/32] cpufreq: delete __cpuinit usage from all cpufreq files 2013-06-25 3:31 ` Viresh Kumar @ 2013-06-25 4:15 ` Joe Perches 2013-06-25 6:44 ` Viresh Kumar 2013-06-25 14:30 ` Paul Gortmaker 1 sibling, 1 reply; 10+ messages in thread From: Joe Perches @ 2013-06-25 4:15 UTC (permalink / raw) To: Viresh Kumar Cc: Paul Gortmaker, linux-kernel, Rafael J. Wysocki, cpufreq, linux-pm On Tue, 2013-06-25 at 09:01 +0530, Viresh Kumar wrote: > On 25 June 2013 01:00, Paul Gortmaker <paul.gortmaker@windriver.com> wrote: > > diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c [] > > -static int __cpuinit cpufreq_cpu_callback(struct notifier_block *nfb, > > - unsigned long action, void *hcpu) > > +static int cpufreq_cpu_callback(struct notifier_block *nfb, > > + unsigned long action, void *hcpu) > > You were not required to change second line here and also don't > change its indentation level. Check this everywhere. Paul, yes, thanks for doing that here, but please, do it everywhere... ;) > > diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c [] > > @@ -306,7 +306,7 @@ static int cpufreq_stat_notifier_policy(struct notifier_block *nb, > > } > > > > static int cpufreq_stat_notifier_trans(struct notifier_block *nb, > > - unsigned long val, void *data) > > + unsigned long val, void *data) > > See.. unnecessary change. Or from another perspective, ideal change. > > -static int __cpuinit cpufreq_stat_cpu_callback(struct notifier_block *nfb, > > +static int cpufreq_stat_cpu_callback(struct notifier_block *nfb, > > unsigned long action, > > void *hcpu) Hey Paul, you missed some too. Viresh, there's no absolute "right" way to do this. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 25/32] cpufreq: delete __cpuinit usage from all cpufreq files 2013-06-25 4:15 ` Joe Perches @ 2013-06-25 6:44 ` Viresh Kumar 2013-06-25 6:59 ` Joe Perches 0 siblings, 1 reply; 10+ messages in thread From: Viresh Kumar @ 2013-06-25 6:44 UTC (permalink / raw) To: Joe Perches Cc: Paul Gortmaker, linux-kernel, Rafael J. Wysocki, cpufreq, linux-pm On 25 June 2013 09:45, Joe Perches <joe@perches.com> wrote: > Viresh, there's no absolute "right" way to do this. Yeah Joe, but I thought its better to keep it consistent within a file. So, while writing new files, keep what you want but for existing ones follow what's in there. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 25/32] cpufreq: delete __cpuinit usage from all cpufreq files 2013-06-25 6:44 ` Viresh Kumar @ 2013-06-25 6:59 ` Joe Perches 2013-06-25 7:01 ` Viresh Kumar 0 siblings, 1 reply; 10+ messages in thread From: Joe Perches @ 2013-06-25 6:59 UTC (permalink / raw) To: Viresh Kumar Cc: Paul Gortmaker, linux-kernel, Rafael J. Wysocki, cpufreq, linux-pm On Tue, 2013-06-25 at 12:14 +0530, Viresh Kumar wrote: > On 25 June 2013 09:45, Joe Perches <joe@perches.com> wrote: > > Viresh, there's no absolute "right" way to do this. > > Yeah Joe, but I thought its better to keep it consistent within a file. > So, while writing new files, keep what you want but for existing ones > follow what's in there. Sure Viresh. I could agree with that, but that's not what you recommended though. "Check this everywhere" isn't the same as the advice you just gave above. There are those that think it's better to convert each instance whenever touched to what they think of as "kernel" style. Me, I'd just as soon convert to aligned indentation and generic kernel style whenever touching any code, even if it differs from the existing file style. cheers, Joe ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 25/32] cpufreq: delete __cpuinit usage from all cpufreq files 2013-06-25 6:59 ` Joe Perches @ 2013-06-25 7:01 ` Viresh Kumar 0 siblings, 0 replies; 10+ messages in thread From: Viresh Kumar @ 2013-06-25 7:01 UTC (permalink / raw) To: Joe Perches Cc: Paul Gortmaker, linux-kernel, Rafael J. Wysocki, cpufreq, linux-pm On 25 June 2013 12:29, Joe Perches <joe@perches.com> wrote: > Sure Viresh. > > I could agree with that, but that's not what you > recommended though. "Check this everywhere" isn't > the same as the advice you just gave above. So, I couldn't communicate myself well :( What I meant is, "check all changes you are making and be sure you are not repeating this change again". ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 25/32] cpufreq: delete __cpuinit usage from all cpufreq files 2013-06-25 3:31 ` Viresh Kumar 2013-06-25 4:15 ` Joe Perches @ 2013-06-25 14:30 ` Paul Gortmaker 1 sibling, 0 replies; 10+ messages in thread From: Paul Gortmaker @ 2013-06-25 14:30 UTC (permalink / raw) To: Viresh Kumar; +Cc: linux-kernel, Rafael J. Wysocki, cpufreq, linux-pm On 13-06-24 11:31 PM, Viresh Kumar wrote: > On 25 June 2013 01:00, Paul Gortmaker <paul.gortmaker@windriver.com> wrote: > >> diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c >> index f8c2860..5687d28 100644 >> --- a/drivers/cpufreq/cpufreq.c >> +++ b/drivers/cpufreq/cpufreq.c >> @@ -1900,8 +1900,8 @@ no_policy: >> } >> EXPORT_SYMBOL(cpufreq_update_policy); >> >> -static int __cpuinit cpufreq_cpu_callback(struct notifier_block *nfb, >> - unsigned long action, void *hcpu) >> +static int cpufreq_cpu_callback(struct notifier_block *nfb, >> + unsigned long action, void *hcpu) > > You were not required to change second line here and also don't > change its indentation level. Check this everywhere. > [...] Since you've explicitly requested it, I've left all second lines of args untouched in v2, now pushed to the patch queue: http://git.kernel.org/cgit/linux/kernel/git/paulg/cpuinit-delete.git > > Fix these and add my > Acked-by: Viresh Kumar <viresh.kumar@linaro.org> > > Probably this can go through Rafael's pm tree. So, you can take it > out of this series if you want. I'd encourage people to not take the patches into their specific trees unless they really feel a specific need to do so. It will keep the majority of them clumped together in git history that way. Thanks, Paul. -- > ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <1372102237-8757-1-git-send-email-paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org>]
* [PATCH-next 00/32] Delete support for __cpuinit [not found] ` <1372102237-8757-1-git-send-email-paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org> @ 2013-06-24 20:00 ` Paul Gortmaker 0 siblings, 0 replies; 10+ messages in thread From: Paul Gortmaker @ 2013-06-24 20:00 UTC (permalink / raw) To: Paul Gortmaker Cc: linux-m32r-ja-rQhvJZKUsGBRYuoOT4C5/9i2O/JbrIOy, linux-s390-u79uwXL29TY76Z2rM5mHXA, linux-m32r-rQhvJZKUsGBRYuoOT4C5/9i2O/JbrIOy, linux-ia64-u79uwXL29TY76Z2rM5mHXA, linux-parisc-u79uwXL29TY76Z2rM5mHXA, linux-cris-kernel-VrBV9hrLPhE, linux-pm-u79uwXL29TY76Z2rM5mHXA, linux-sh-u79uwXL29TY76Z2rM5mHXA, linux-hexagon-u79uwXL29TY76Z2rM5mHXA, linux-xtensa-PjhNF2WwrV/0Sa2dR60CXw, linux390-tA70FqPdS9bQT0dZR+AlfA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, cpufreq-u79uwXL29TY76Z2rM5mHXA, lm-sensors-GZX6beZjE8VD60Wz+7aTrA, linux-acpi-u79uwXL29TY76Z2rM5mHXA, netdev-u79uwXL29TY76Z2rM5mHXA, sparclinux-u79uwXL29TY76Z2rM5mHXA, uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b, x86-DgEjT+Ai2ygdnm+yROfE0A, linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r [Resending with only lists on Cc: -- previous mail header on the 00/32 was too long; failed to get passed vger's crap filters.] On 13-06-24 03:30 PM, Paul Gortmaker wrote: > This is the whole patch queue for removal of __cpuinit support > against the latest linux-next tree (Jun24th). Some of you may > have already seen chunks of it, or already read the logistics > of what is being done (and why) here: > > https://lkml.org/lkml/2013/6/20/513 > > I won't repeat all that here again, other than to say this send > is to ensure arch/subsystem maintainers get a 2nd chance to know > what is going on and to look at what is being proposed for their > area of code. That, and to ensure one complete continuous copy > of it gets mailed out. You can also see the patch queue here: > > http://git.kernel.org/cgit/linux/kernel/git/paulg/cpuinit-delete.git > > If you've noticed that a chunk for MIPS isn't present here, that > is because it has already been queued in the linux-mips for-next > branch. > > Thanks, > Paul. > > --- > Cc: Len Brown <lenb-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > Cc: "Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org> > Cc: Richard Henderson <rth-hL46jP5Bxq7R7s880joybQ@public.gmane.org> > Cc: Ivan Kokshaysky <ink-biIs/Y0ymYJMZLIVYojuPNP0rXTJTi09@public.gmane.org> > Cc: Matt Turner <mattst88-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Cc: Vineet Gupta <vgupta-HKixBCOQz3hWk0Htik3J/w@public.gmane.org> > Cc: Russell King <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> > Cc: Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org> > Cc: Catalin Marinas <catalin.marinas-5wv7dgnIgG8@public.gmane.org> > Cc: Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org> > Cc: Mike Frysinger <vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org> > Cc: Bob Liu <lliubbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Cc: Sonic Zhang <sonic.zhang-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org> > Cc: Jens Axboe <axboe-tSWWG44O7X1aa/9Udqfwiw@public.gmane.org> > Cc: John Stultz <john.stultz-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> > Cc: Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org> > Cc: "Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org> > Cc: Viresh Kumar <viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> > Cc: Mikael Starvik <starvik-VrBV9hrLPhE@public.gmane.org> > Cc: Jesper Nilsson <jesper.nilsson-VrBV9hrLPhE@public.gmane.org> > Cc: Greg Kroah-Hartman <gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org> > Cc: David Howells <dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> > Cc: Richard Kuo <rkuo-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> > Cc: Fenghua Yu <fenghua.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > Cc: Tony Luck <tony.luck-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > Cc: Fenghua Yu <fenghua.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > Cc: Hirokazu Takata <takata-TMSiXQfHlQjsTix1lMzHGQ@public.gmane.org> > Cc: James Hogan <james.hogan-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org> > Cc: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> > Cc: Rusty Russell <rusty-8n+1lVoiYb80n/F98K4Iww@public.gmane.org> > Cc: "David S. Miller" <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org> > Cc: Jonas Bonn <jonas-A9uVI2HLR7kOP4wsBPIw7w@public.gmane.org> > Cc: Helge Deller <deller-Mmb7MZpHnFY@public.gmane.org> > Cc: Benjamin Herrenschmidt <benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org> > Cc: Paul Mackerras <paulus-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> > Cc: Josh Boyer <jwboyer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Cc: Matt Porter <mporter-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org> > Cc: Kumar Gala <galak-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org> > Cc: "Paul E. McKenney" <paulmck-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> > Cc: Josh Triplett <josh-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org> > Cc: Dipankar Sarma <dipankar-xthvdsQ13ZrQT0dZR+AlfA@public.gmane.org> > Cc: Martin Schwidefsky <schwidefsky-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org> > Cc: Heiko Carstens <heiko.carstens-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org> > Cc: Chen Liqin <liqin.chen-+XGAvkf1AAHby3iVrkZq2A@public.gmane.org> > Cc: Lennox Wu <lennox.wu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Cc: Paul Mundt <lethal-M7jkjyW5wf5g9hUCZPvPmw@public.gmane.org> > Cc: "David S. Miller" <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org> > Cc: Chris Metcalf <cmetcalf-kv+TWInifGbQT0dZR+AlfA@public.gmane.org> > Cc: Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org> > Cc: Ingo Molnar <mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> > Cc: "H. Peter Anvin" <hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org> > Cc: Chris Zankel <chris-YvXeqwSYzG2sTnJN9+BGXg@public.gmane.org> > Cc: Max Filippov <jcmvbkbc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Cc: linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org > Cc: uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org > Cc: cpufreq-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: linux-cris-kernel-VrBV9hrLPhE@public.gmane.org > Cc: linux-hexagon-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org > Cc: linux-ia64-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: linux-m32r-rQhvJZKUsGBRYuoOT4C5/9i2O/JbrIOy@public.gmane.org > Cc: linux-m32r-ja-rQhvJZKUsGBRYuoOT4C5/9i2O/JbrIOy@public.gmane.org > Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: linux-ZwoEplunGu2h2975yA52AaxOck334EZe@public.gmane.org > Cc: linux-parisc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org > Cc: linux390-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org > Cc: linux-s390-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: linux-sh-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: sparclinux-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org > Cc: linux-xtensa-PjhNF2WwrV/0Sa2dR60CXw@public.gmane.org > > Paul Gortmaker (32): > init.h: remove __cpuinit sections from the kernel > modpost: remove all traces of cpuinit/cpuexit sections > alpha: delete __cpuinit usage from all users > powerpc: delete __cpuinit usage from all users > parisc: delete __cpuinit usage from all users > ia64: delete __cpuinit usage from all ia64 users > arm: delete __cpuinit/__CPUINIT usage from all ARM users > sparc: delete __cpuinit/__CPUINIT usage from all users > arm64: delete __cpuinit usage from all users > arc: delete __cpuinit usage from all arc files > blackfin: delete __cpuinit usage from all blackfin files > s390: delete __cpuinit usage from all s390 files > sh: delete __cpuinit usage from all sh files > tile: delete __cpuinit usage from all tile files > metag: delete __cpuinit usage from all metag files > cris: delete __cpuinit usage from all cris files > frv: delete __cpuinit usage from all frv files > hexagon: delete __cpuinit usage from all hexagon files > m32r: delete __cpuinit usage from all m32r files > openrisc: delete __cpuinit usage from all openrisc files > xtensa: delete __cpuinit usage from all xtensa files > score: delete __cpuinit usage from all score files > x86: delete __cpuinit usage from all x86 files > clocksource+irqchip: delete __cpuinit usage from all related files > cpufreq: delete __cpuinit usage from all cpufreq files > hwmon: delete __cpuinit usage from all hwmon files > acpi: delete __cpuinit usage from all acpi files > net: delete __cpuinit usage from all net files > rcu: delete __cpuinit usage from all rcu files > kernel: delete __cpuinit usage from all core kernel files > drivers: delete __cpuinit usage from all remaining drivers files > block: delete __cpuinit usage from all block files > > Documentation/cpu-hotplug.txt | 6 +-- > arch/alpha/kernel/smp.c | 10 ++--- > arch/alpha/kernel/traps.c | 4 +- > arch/arc/include/asm/irq.h | 2 +- > arch/arc/kernel/irq.c | 2 +- > arch/arc/kernel/setup.c | 10 ++--- > arch/arc/kernel/smp.c | 4 +- > arch/arc/kernel/time.c | 6 +-- > arch/arc/mm/cache_arc700.c | 4 +- > arch/arc/mm/tlb.c | 4 +- > arch/arm/common/mcpm_platsmp.c | 4 +- > arch/arm/include/asm/arch_timer.h | 2 +- > arch/arm/kernel/head-common.S | 1 - > arch/arm/kernel/head.S | 1 - > arch/arm/kernel/hw_breakpoint.c | 4 +- > arch/arm/kernel/perf_event_cpu.c | 6 +-- > arch/arm/kernel/psci_smp.c | 3 +- > arch/arm/kernel/smp.c | 18 ++++---- > arch/arm/kernel/smp_twd.c | 6 +-- > arch/arm/lib/delay.c | 2 +- > arch/arm/mach-exynos/headsmp.S | 2 - > arch/arm/mach-exynos/platsmp.c | 4 +- > arch/arm/mach-highbank/platsmp.c | 2 +- > arch/arm/mach-imx/platsmp.c | 2 +- > arch/arm/mach-msm/headsmp.S | 2 - > arch/arm/mach-msm/platsmp.c | 6 +-- > arch/arm/mach-msm/timer.c | 4 +- > arch/arm/mach-mvebu/coherency.c | 2 +- > arch/arm/mach-mvebu/headsmp.S | 2 - > arch/arm/mach-mvebu/platsmp.c | 5 +-- > arch/arm/mach-omap2/omap-headsmp.S | 2 - > arch/arm/mach-omap2/omap-mpuss-lowpower.c | 2 +- > arch/arm/mach-omap2/omap-smp.c | 4 +- > arch/arm/mach-omap2/omap-wakeupgen.c | 4 +- > arch/arm/mach-prima2/headsmp.S | 2 - > arch/arm/mach-prima2/platsmp.c | 4 +- > arch/arm/mach-shmobile/headsmp-scu.S | 1 - > arch/arm/mach-shmobile/headsmp.S | 2 - > arch/arm/mach-shmobile/smp-emev2.c | 2 +- > arch/arm/mach-shmobile/smp-r8a7779.c | 2 +- > arch/arm/mach-shmobile/smp-sh73a0.c | 2 +- > arch/arm/mach-socfpga/headsmp.S | 1 - > arch/arm/mach-socfpga/platsmp.c | 2 +- > arch/arm/mach-spear/generic.h | 2 +- > arch/arm/mach-spear/platsmp.c | 4 +- > arch/arm/mach-tegra/platsmp.c | 4 +- > arch/arm/mach-tegra/pm.c | 2 +- > arch/arm/mach-ux500/platsmp.c | 4 +- > arch/arm/mach-zynq/common.h | 2 +- > arch/arm/mach-zynq/headsmp.S | 2 - > arch/arm/mach-zynq/platsmp.c | 6 +-- > arch/arm/mm/proc-arm1020.S | 2 - > arch/arm/mm/proc-arm1020e.S | 2 - > arch/arm/mm/proc-arm1022.S | 2 - > arch/arm/mm/proc-arm1026.S | 3 -- > arch/arm/mm/proc-arm720.S | 2 - > arch/arm/mm/proc-arm740.S | 2 - > arch/arm/mm/proc-arm7tdmi.S | 2 - > arch/arm/mm/proc-arm920.S | 2 - > arch/arm/mm/proc-arm922.S | 2 - > arch/arm/mm/proc-arm925.S | 2 - > arch/arm/mm/proc-arm926.S | 2 - > arch/arm/mm/proc-arm940.S | 2 - > arch/arm/mm/proc-arm946.S | 2 - > arch/arm/mm/proc-arm9tdmi.S | 2 - > arch/arm/mm/proc-fa526.S | 2 - > arch/arm/mm/proc-feroceon.S | 2 - > arch/arm/mm/proc-mohawk.S | 2 - > arch/arm/mm/proc-sa110.S | 2 - > arch/arm/mm/proc-sa1100.S | 2 - > arch/arm/mm/proc-v6.S | 2 - > arch/arm/mm/proc-v7-2level.S | 4 -- > arch/arm/mm/proc-v7-3level.S | 4 -- > arch/arm/mm/proc-v7.S | 2 - > arch/arm/mm/proc-xsc3.S | 2 - > arch/arm/mm/proc-xscale.S | 2 - > arch/arm/plat-versatile/platsmp.c | 6 +-- > arch/arm64/include/asm/arch_timer.h | 2 +- > arch/arm64/kernel/debug-monitors.c | 6 +-- > arch/arm64/kernel/hw_breakpoint.c | 4 +- > arch/arm64/kernel/smp.c | 8 ++-- > arch/blackfin/kernel/perf_event.c | 2 +- > arch/blackfin/kernel/setup.c | 4 +- > arch/blackfin/mach-bf561/smp.c | 6 +-- > arch/blackfin/mach-common/cache-c.c | 4 +- > arch/blackfin/mach-common/ints-priority.c | 2 +- > arch/blackfin/mach-common/smp.c | 8 ++-- > arch/cris/arch-v32/kernel/smp.c | 2 +- > arch/frv/kernel/setup.c | 2 +- > arch/hexagon/kernel/setup.c | 2 +- > arch/hexagon/kernel/smp.c | 4 +- > arch/ia64/kernel/acpi.c | 4 +- > arch/ia64/kernel/err_inject.c | 8 ++-- > arch/ia64/kernel/mca.c | 12 ++--- > arch/ia64/kernel/numa.c | 4 +- > arch/ia64/kernel/palinfo.c | 4 +- > arch/ia64/kernel/salinfo.c | 4 +- > arch/ia64/kernel/setup.c | 10 ++--- > arch/ia64/kernel/smpboot.c | 8 ++-- > arch/ia64/kernel/topology.c | 18 ++++---- > arch/ia64/mm/contig.c | 3 +- > arch/ia64/mm/discontig.c | 2 +- > arch/ia64/mm/numa.c | 2 +- > arch/ia64/sn/kernel/setup.c | 8 ++-- > arch/ia64/xen/hypervisor.c | 2 +- > arch/m32r/kernel/smpboot.c | 2 +- > arch/metag/kernel/perf/perf_event.c | 6 +-- > arch/metag/kernel/smp.c | 16 +++---- > arch/metag/kernel/traps.c | 2 +- > arch/openrisc/kernel/setup.c | 2 +- > arch/parisc/kernel/firmware.c | 14 +++--- > arch/parisc/kernel/hardware.c | 2 +- > arch/parisc/kernel/processor.c | 6 +-- > arch/parisc/kernel/smp.c | 8 ++-- > arch/powerpc/include/asm/rtas.h | 4 +- > arch/powerpc/include/asm/vdso.h | 2 +- > arch/powerpc/kernel/cacheinfo.c | 36 ++++++++------- > arch/powerpc/kernel/rtas.c | 4 +- > arch/powerpc/kernel/smp.c | 4 +- > arch/powerpc/kernel/sysfs.c | 6 +-- > arch/powerpc/kernel/time.c | 1 - > arch/powerpc/kernel/vdso.c | 2 +- > arch/powerpc/mm/44x_mmu.c | 6 +-- > arch/powerpc/mm/hash_utils_64.c | 2 +- > arch/powerpc/mm/mmu_context_nohash.c | 6 +-- > arch/powerpc/mm/numa.c | 7 ++- > arch/powerpc/mm/tlb_nohash.c | 2 +- > arch/powerpc/perf/core-book3s.c | 4 +- > arch/powerpc/platforms/44x/currituck.c | 4 +- > arch/powerpc/platforms/44x/iss4xx.c | 4 +- > arch/powerpc/platforms/85xx/smp.c | 6 +-- > arch/powerpc/platforms/powermac/smp.c | 2 +- > arch/powerpc/platforms/powernv/smp.c | 2 +- > arch/s390/kernel/cache.c | 15 +++---- > arch/s390/kernel/perf_cpum_cf.c | 4 +- > arch/s390/kernel/processor.c | 2 +- > arch/s390/kernel/smp.c | 17 ++++--- > arch/s390/kernel/sysinfo.c | 2 +- > arch/s390/kernel/vtime.c | 6 +-- > arch/s390/mm/fault.c | 4 +- > arch/score/mm/tlb-score.c | 2 +- > arch/sh/kernel/cpu/init.c | 18 ++++---- > arch/sh/kernel/cpu/sh2/probe.c | 2 +- > arch/sh/kernel/cpu/sh2a/probe.c | 2 +- > arch/sh/kernel/cpu/sh3/probe.c | 2 +- > arch/sh/kernel/cpu/sh4/probe.c | 2 +- > arch/sh/kernel/cpu/sh4a/smp-shx3.c | 6 +-- > arch/sh/kernel/cpu/sh5/probe.c | 2 +- > arch/sh/kernel/perf_event.c | 4 +- > arch/sh/kernel/process.c | 2 +- > arch/sh/kernel/setup.c | 2 +- > arch/sh/kernel/smp.c | 8 ++-- > arch/sh/kernel/traps_32.c | 2 +- > arch/sh/kernel/traps_64.c | 2 +- > arch/sh/mm/tlb-sh5.c | 2 +- > arch/sparc/kernel/ds.c | 11 ++--- > arch/sparc/kernel/entry.h | 2 +- > arch/sparc/kernel/hvtramp.S | 1 - > arch/sparc/kernel/irq_64.c | 5 ++- > arch/sparc/kernel/leon_smp.c | 10 ++--- > arch/sparc/kernel/mdesc.c | 34 +++++++------- > arch/sparc/kernel/smp_32.c | 20 ++++----- > arch/sparc/kernel/smp_64.c | 9 ++-- > arch/sparc/kernel/sun4d_smp.c | 6 +-- > arch/sparc/kernel/sun4m_smp.c | 6 +-- > arch/sparc/kernel/sysfs.c | 4 +- > arch/sparc/kernel/trampoline_32.S | 3 -- > arch/sparc/kernel/trampoline_64.S | 2 - > arch/sparc/mm/init_64.c | 2 +- > arch/sparc/mm/srmmu.c | 12 ++--- > arch/tile/kernel/irq.c | 2 +- > arch/tile/kernel/messaging.c | 2 +- > arch/tile/kernel/setup.c | 12 ++--- > arch/tile/kernel/smpboot.c | 8 ++-- > arch/tile/kernel/time.c | 2 +- > arch/x86/include/asm/cpu.h | 2 +- > arch/x86/include/asm/microcode.h | 4 +- > arch/x86/include/asm/microcode_intel.h | 4 +- > arch/x86/include/asm/mmconfig.h | 4 +- > arch/x86/include/asm/mpspec.h | 2 +- > arch/x86/include/asm/numa.h | 6 +-- > arch/x86/include/asm/prom.h | 2 +- > arch/x86/include/asm/smp.h | 2 +- > arch/x86/kernel/acpi/boot.c | 6 +-- > arch/x86/kernel/apic/apic.c | 30 ++++++------- > arch/x86/kernel/apic/apic_numachip.c | 2 +- > arch/x86/kernel/apic/es7000_32.c | 2 +- > arch/x86/kernel/apic/numaq_32.c | 2 +- > arch/x86/kernel/apic/x2apic_cluster.c | 2 +- > arch/x86/kernel/apic/x2apic_uv_x.c | 14 +++--- > arch/x86/kernel/cpu/amd.c | 33 +++++++------- > arch/x86/kernel/cpu/centaur.c | 26 +++++------ > arch/x86/kernel/cpu/common.c | 64 +++++++++++++-------------- > arch/x86/kernel/cpu/cyrix.c | 40 ++++++++--------- > arch/x86/kernel/cpu/hypervisor.c | 2 +- > arch/x86/kernel/cpu/intel.c | 30 ++++++------- > arch/x86/kernel/cpu/intel_cacheinfo.c | 55 +++++++++++------------ > arch/x86/kernel/cpu/mcheck/mce.c | 23 +++++----- > arch/x86/kernel/cpu/mcheck/mce_amd.c | 14 +++--- > arch/x86/kernel/cpu/mcheck/therm_throt.c | 9 ++-- > arch/x86/kernel/cpu/perf_event.c | 2 +- > arch/x86/kernel/cpu/perf_event_amd_ibs.c | 2 +- > arch/x86/kernel/cpu/perf_event_amd_uncore.c | 31 +++++++------ > arch/x86/kernel/cpu/perf_event_intel_uncore.c | 20 ++++----- > arch/x86/kernel/cpu/rdrand.c | 2 +- > arch/x86/kernel/cpu/scattered.c | 4 +- > arch/x86/kernel/cpu/topology.c | 2 +- > arch/x86/kernel/cpu/transmeta.c | 6 +-- > arch/x86/kernel/cpu/umc.c | 2 +- > arch/x86/kernel/cpu/vmware.c | 2 +- > arch/x86/kernel/cpuid.c | 7 ++- > arch/x86/kernel/devicetree.c | 2 +- > arch/x86/kernel/head_32.S | 1 - > arch/x86/kernel/i387.c | 8 ++-- > arch/x86/kernel/irq_32.c | 2 +- > arch/x86/kernel/kvm.c | 10 ++--- > arch/x86/kernel/kvmclock.c | 2 +- > arch/x86/kernel/microcode_core.c | 2 +- > arch/x86/kernel/microcode_core_early.c | 6 +-- > arch/x86/kernel/microcode_intel_early.c | 26 +++++------ > arch/x86/kernel/mmconf-fam10h_64.c | 12 ++--- > arch/x86/kernel/msr.c | 6 +-- > arch/x86/kernel/process.c | 2 +- > arch/x86/kernel/setup.c | 2 +- > arch/x86/kernel/smpboot.c | 28 ++++++------ > arch/x86/kernel/tboot.c | 6 +-- > arch/x86/kernel/tsc.c | 4 +- > arch/x86/kernel/tsc_sync.c | 18 ++++---- > arch/x86/kernel/vsyscall_64.c | 6 +-- > arch/x86/kernel/x86_init.c | 4 +- > arch/x86/kernel/xsave.c | 4 +- > arch/x86/mm/mmio-mod.c | 4 +- > arch/x86/mm/numa.c | 12 ++--- > arch/x86/mm/numa_emulation.c | 12 ++--- > arch/x86/mm/setup_nx.c | 4 +- > arch/x86/pci/amd_bus.c | 8 ++-- > arch/x86/platform/ce4100/ce4100.c | 2 +- > arch/x86/platform/mrst/mrst.c | 4 +- > arch/x86/xen/enlighten.c | 6 +-- > arch/x86/xen/setup.c | 6 +-- > arch/x86/xen/smp.c | 12 ++--- > arch/x86/xen/spinlock.c | 2 +- > arch/x86/xen/xen-ops.h | 2 +- > arch/xtensa/kernel/time.c | 2 +- > block/blk-iopoll.c | 6 +-- > block/blk-softirq.c | 6 +-- > drivers/acpi/acpi_processor.c | 2 +- > drivers/acpi/processor_core.c | 8 ++-- > drivers/acpi/processor_driver.c | 8 ++-- > drivers/acpi/processor_idle.c | 6 +-- > drivers/base/cpu.c | 2 +- > drivers/base/topology.c | 10 ++--- > drivers/clocksource/arm_arch_timer.c | 8 ++-- > drivers/clocksource/exynos_mct.c | 4 +- > drivers/clocksource/metag_generic.c | 6 +-- > drivers/clocksource/time-armada-370-xp.c | 4 +- > drivers/clocksource/timer-marco.c | 4 +- > drivers/cpufreq/cpufreq.c | 4 +- > drivers/cpufreq/cpufreq_stats.c | 4 +- > drivers/cpufreq/dbx500-cpufreq.c | 2 +- > drivers/cpufreq/intel_pstate.c | 4 +- > drivers/cpufreq/longhaul.c | 6 +-- > drivers/cpufreq/longhaul.h | 26 +++++------ > drivers/cpufreq/longrun.c | 8 ++-- > drivers/cpufreq/omap-cpufreq.c | 2 +- > drivers/cpufreq/powernow-k7.c | 8 ++-- > drivers/cpufreq/powernow-k8.c | 6 +-- > drivers/hwmon/coretemp.c | 39 ++++++++-------- > drivers/hwmon/via-cputemp.c | 8 ++-- > drivers/irqchip/irq-gic.c | 8 ++-- > drivers/oprofile/timer_int.c | 4 +- > drivers/xen/xen-acpi-cpuhotplug.c | 2 +- > include/asm-generic/vmlinux.lds.h | 12 ----- > include/linux/cpu.h | 2 +- > include/linux/init.h | 19 ++++---- > include/linux/perf_event.h | 2 +- > init/calibrate.c | 13 +++--- > kernel/cpu.c | 6 +-- > kernel/events/core.c | 4 +- > kernel/fork.c | 2 +- > kernel/hrtimer.c | 6 +-- > kernel/printk.c | 2 +- > kernel/profile.c | 2 +- > kernel/rcutorture.c | 6 +-- > kernel/rcutree.c | 6 +-- > kernel/rcutree.h | 4 +- > kernel/rcutree_plugin.h | 6 +-- > kernel/relay.c | 2 +- > kernel/sched/core.c | 12 ++--- > kernel/sched/fair.c | 2 +- > kernel/smp.c | 2 +- > kernel/smpboot.c | 2 +- > kernel/softirq.c | 8 ++-- > kernel/time/tick-sched.c | 2 +- > kernel/timer.c | 10 ++--- > kernel/workqueue.c | 4 +- > lib/Kconfig.debug | 2 +- > lib/earlycpio.c | 2 +- > lib/percpu_counter.c | 2 +- > mm/memcontrol.c | 2 +- > mm/page-writeback.c | 4 +- > mm/slab.c | 10 ++--- > mm/slub.c | 4 +- > mm/vmstat.c | 6 +-- > net/core/flow.c | 4 +- > net/iucv/iucv.c | 2 +- > scripts/mod/modpost.c | 52 ++++------------------ > 307 files changed, 896 insertions(+), 1037 deletions(-) > ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-06-25 14:30 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-06-24 19:30 [PATCH-next 00/32] Delete support for __cpuinit Paul Gortmaker 2013-06-24 19:30 ` [PATCH 25/32] cpufreq: delete __cpuinit usage from all cpufreq files Paul Gortmaker 2013-06-24 22:42 ` Dirk Brandewie 2013-06-25 3:31 ` Viresh Kumar 2013-06-25 4:15 ` Joe Perches 2013-06-25 6:44 ` Viresh Kumar 2013-06-25 6:59 ` Joe Perches 2013-06-25 7:01 ` Viresh Kumar 2013-06-25 14:30 ` Paul Gortmaker [not found] ` <1372102237-8757-1-git-send-email-paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org> 2013-06-24 20:00 ` [PATCH-next 00/32] Delete support for __cpuinit Paul Gortmaker
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).