[PATCH 0/5] MIPS: FP cleanup & no-FP support

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

 



This series tidies up support for floating point a little, then
introduces support for disabling it via Kconfig. The end result is that
it becomes possible to compile a kernel which does not include any
support for userland which makes use of floating point instructions -
meaning that it never enables an FPU & does not include the FPU
emulator. The benefit of this is that if you know your userland code
will not use FP instructions then you can shrink the kernel by around
65KiB.

Applies atop v4.12-rc4.

Paul Burton (5):
  MIPS: Remove unused R6000 support
  MIPS: Move r4k FP code from r4k_switch.S to r4k_fpu.S
  MIPS: Move r2300 FP code from r2300_switch.S to r2300_fpu.S
  MIPS: Remove unused ST_OFF from r2300_switch.S
  MIPS: Allow floating point support to be disabled

 arch/mips/Kconfig                    |  41 ++++---
 arch/mips/Makefile                   |   3 +-
 arch/mips/include/asm/cpu-features.h |  11 +-
 arch/mips/include/asm/cpu-type.h     |   5 -
 arch/mips/include/asm/cpu.h          |   5 -
 arch/mips/include/asm/dsemul.h       |  34 ++++++
 arch/mips/include/asm/fpu.h          |   3 +
 arch/mips/include/asm/fpu_emulator.h |  16 +++
 arch/mips/include/asm/module.h       |   2 -
 arch/mips/kernel/Makefile            |  13 ++-
 arch/mips/kernel/cpu-probe.c         |  18 ----
 arch/mips/kernel/octeon_switch.S     |   5 -
 arch/mips/kernel/process.c           |   8 ++
 arch/mips/kernel/r2300_fpu.S         |  78 +++++++++++++-
 arch/mips/kernel/r2300_switch.S      |  81 --------------
 arch/mips/kernel/r4k_fpu.S           | 196 +++++++++++++++++++++++++++++++++
 arch/mips/kernel/r4k_switch.S        | 203 -----------------------------------
 arch/mips/kernel/r6000_fpu.S         |  99 -----------------
 arch/mips/kernel/traps.c             |  15 ---
 arch/mips/mm/tlbex.c                 |   5 -
 20 files changed, 376 insertions(+), 465 deletions(-)
 delete mode 100644 arch/mips/kernel/r6000_fpu.S

-- 
2.13.0





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

  Powered by Linux