Re: [PATCH 2/2] mips: delete __cpuinit usage from all remaining MIPS users

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

 



On Mon, Jun 17, 2013 at 3:13 PM, Paul Gortmaker
<paul.gortmaker@xxxxxxxxxxxxx> 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 remaining MIPS users of the __cpuinit macros.

This is missing dealing with the __CPUINIT in asm files, which can
lead to section mismatches.  I'll squish these two patches together,
deal with __CPUINIT (all in one patch so it is an atomic change) and
resend...  sorry for the noise.

Paul.
---

>
> [1] https://lkml.org/lkml/2013/5/20/589
>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx>
> ---
>  arch/mips/ath79/setup.c               |   2 +-
>  arch/mips/cavium-octeon/octeon-irq.c  |  12 +--
>  arch/mips/cavium-octeon/smp.c         |   6 +-
>  arch/mips/kernel/cevt-bcm1480.c       |   2 +-
>  arch/mips/kernel/cevt-gic.c           |   2 +-
>  arch/mips/kernel/cevt-r4k.c           |   2 +-
>  arch/mips/kernel/cevt-sb1250.c        |   2 +-
>  arch/mips/kernel/cevt-smtc.c          |   2 +-
>  arch/mips/kernel/cpu-bugs64.c         |   2 +-
>  arch/mips/kernel/cpu-probe.c          |  14 ++--
>  arch/mips/kernel/smp-bmips.c          |   6 +-
>  arch/mips/kernel/smp-mt.c             |   6 +-
>  arch/mips/kernel/smp-up.c             |   6 +-
>  arch/mips/kernel/smp.c                |   6 +-
>  arch/mips/kernel/smtc.c               |   2 +-
>  arch/mips/kernel/spram.c              |  14 ++--
>  arch/mips/kernel/sync-r4k.c           |  12 +--
>  arch/mips/kernel/traps.c              |  12 +--
>  arch/mips/kernel/watch.c              |   2 +-
>  arch/mips/lantiq/irq.c                |   2 +-
>  arch/mips/lib/uncached.c              |   2 +-
>  arch/mips/mm/c-octeon.c               |   6 +-
>  arch/mips/mm/c-r3k.c                  |   8 +-
>  arch/mips/mm/c-r4k.c                  |  34 ++++----
>  arch/mips/mm/c-tx39.c                 |   2 +-
>  arch/mips/mm/cache.c                  |   2 +-
>  arch/mips/mm/page.c                   |  40 +++++-----
>  arch/mips/mm/sc-ip22.c                |   2 +-
>  arch/mips/mm/sc-mips.c                |   2 +-
>  arch/mips/mm/sc-r5k.c                 |   2 +-
>  arch/mips/mm/sc-rm7k.c                |  12 +--
>  arch/mips/mm/tlb-r3k.c                |   2 +-
>  arch/mips/mm/tlb-r4k.c                |   4 +-
>  arch/mips/mm/tlb-r8k.c                |   4 +-
>  arch/mips/mm/tlbex.c                  | 144 ++++++++++++++++------------------
>  arch/mips/mti-malta/malta-smtc.c      |   6 +-
>  arch/mips/mti-malta/malta-time.c      |   2 +-
>  arch/mips/mti-sead3/sead3-time.c      |   2 +-
>  arch/mips/netlogic/common/smp.c       |   4 +-
>  arch/mips/netlogic/common/time.c      |   2 +-
>  arch/mips/netlogic/xlr/wakeup.c       |   2 +-
>  arch/mips/pci/pci-ip27.c              |   2 +-
>  arch/mips/pmcs-msp71xx/msp_smtc.c     |   7 +-
>  arch/mips/pmcs-msp71xx/msp_time.c     |   2 +-
>  arch/mips/pnx833x/common/interrupts.c |   2 +-
>  arch/mips/powertv/time.c              |   2 +-
>  arch/mips/ralink/irq.c                |   2 +-
>  arch/mips/sgi-ip27/ip27-init.c        |   4 +-
>  arch/mips/sgi-ip27/ip27-smp.c         |   6 +-
>  arch/mips/sgi-ip27/ip27-timer.c       |   6 +-
>  arch/mips/sgi-ip27/ip27-xtalk.c       |   6 +-
>  arch/mips/sibyte/bcm1480/smp.c        |   8 +-
>  arch/mips/sibyte/sb1250/smp.c         |   8 +-
>  53 files changed, 221 insertions(+), 232 deletions(-)
>


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux