1. 17 Aug, 2014 2 commits
    • Josh Triplett's avatar
      x86: Support compiling out human-friendly processor feature names · 9def39be
      Josh Triplett authored
      The table mapping CPUID bits to human-readable strings takes up a
      non-trivial amount of space, and only exists to support /proc/cpuinfo
      and a couple of kernel messages.  Since programs depend on the format of
      /proc/cpuinfo, force inclusion of the table when building with /proc
      support; otherwise, support omitting that table to save space, in which
      case the kernel messages will print features numerically instead.
      
      In addition to saving 1408 bytes out of vmlinux, this also saves 1373
      bytes out of the uncompressed setup code, which contributes directly to
      the size of bzImage.
      Signed-off-by: default avatarJosh Triplett <josh@joshtriplett.org>
      9def39be
    • Josh Triplett's avatar
      x86: Drop support for /proc files when !CONFIG_PROC_FS · 39f838e0
      Josh Triplett authored
      arch/x86/kernel/cpu/proc.c only exists to support files in /proc; omit that
      file when compiling without CONFIG_PROC_FS.
      
      Saves 645 additional bytes on 32-bit x86 when !CONFIG_PROC_FS:
      
      add/remove: 0/5 grow/shrink: 0/0 up/down: 0/-645 (-645)
      function                                     old     new   delta
      c_stop                                         1       -      -1
      c_next                                        11       -     -11
      cpuinfo_op                                    16       -     -16
      c_start                                       24       -     -24
      show_cpuinfo                                 593       -    -593
      Signed-off-by: default avatarJosh Triplett <josh@joshtriplett.org>
      39f838e0
  2. 16 Aug, 2014 38 commits