1. 02 3月, 2018 2 次提交
  2. 02 11月, 2017 1 次提交
    • G
      License cleanup: add SPDX GPL-2.0 license identifier to files with no license · b2441318
      Greg Kroah-Hartman 提交于
      Many source files in the tree are missing licensing information, which
      makes it harder for compliance tools to determine the correct license.
      
      By default all files without license information are under the default
      license of the kernel, which is GPL version 2.
      
      Update the files which contain no license information with the 'GPL-2.0'
      SPDX license identifier.  The SPDX identifier is a legally binding
      shorthand, which can be used instead of the full boiler plate text.
      
      This patch is based on work done by Thomas Gleixner and Kate Stewart and
      Philippe Ombredanne.
      
      How this work was done:
      
      Patches were generated and checked against linux-4.14-rc6 for a subset of
      the use cases:
       - file had no licensing information it it.
       - file was a */uapi/* one with no licensing information in it,
       - file was a */uapi/* one with existing licensing information,
      
      Further patches will be generated in subsequent months to fix up cases
      where non-standard license headers were used, and references to license
      had to be inferred by heuristics based on keywords.
      
      The analysis to determine which SPDX License Identifier to be applied to
      a file was done in a spreadsheet of side by side results from of the
      output of two independent scanners (ScanCode & Windriver) producing SPDX
      tag:value files created by Philippe Ombredanne.  Philippe prepared the
      base worksheet, and did an initial spot review of a few 1000 files.
      
      The 4.13 kernel was the starting point of the analysis with 60,537 files
      assessed.  Kate Stewart did a file by file comparison of the scanner
      results in the spreadsheet to determine which SPDX license identifier(s)
      to be applied to the file. She confirmed any determination that was not
      immediately clear with lawyers working with the Linux Foundation.
      
      Criteria used to select files for SPDX license identifier tagging was:
       - Files considered eligible had to be source code files.
       - Make and config files were included as candidates if they contained >5
         lines of source
       - File already had some variant of a license header in it (even if <5
         lines).
      
      All documentation files were explicitly excluded.
      
      The following heuristics were used to determine which SPDX license
      identifiers to apply.
      
       - when both scanners couldn't find any license traces, file was
         considered to have no license information in it, and the top level
         COPYING file license applied.
      
         For non */uapi/* files that summary was:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|-------
         GPL-2.0                                              11139
      
         and resulted in the first patch in this series.
      
         If that file was a */uapi/* path one, it was "GPL-2.0 WITH
         Linux-syscall-note" otherwise it was "GPL-2.0".  Results of that was:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|-------
         GPL-2.0 WITH Linux-syscall-note                        930
      
         and resulted in the second patch in this series.
      
       - if a file had some form of licensing information in it, and was one
         of the */uapi/* ones, it was denoted with the Linux-syscall-note if
         any GPL family license was found in the file or had no licensing in
         it (per prior point).  Results summary:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|------
         GPL-2.0 WITH Linux-syscall-note                       270
         GPL-2.0+ WITH Linux-syscall-note                      169
         ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause)    21
         ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)    17
         LGPL-2.1+ WITH Linux-syscall-note                      15
         GPL-1.0+ WITH Linux-syscall-note                       14
         ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause)    5
         LGPL-2.0+ WITH Linux-syscall-note                       4
         LGPL-2.1 WITH Linux-syscall-note                        3
         ((GPL-2.0 WITH Linux-syscall-note) OR MIT)              3
         ((GPL-2.0 WITH Linux-syscall-note) AND MIT)             1
      
         and that resulted in the third patch in this series.
      
       - when the two scanners agreed on the detected license(s), that became
         the concluded license(s).
      
       - when there was disagreement between the two scanners (one detected a
         license but the other didn't, or they both detected different
         licenses) a manual inspection of the file occurred.
      
       - In most cases a manual inspection of the information in the file
         resulted in a clear resolution of the license that should apply (and
         which scanner probably needed to revisit its heuristics).
      
       - When it was not immediately clear, the license identifier was
         confirmed with lawyers working with the Linux Foundation.
      
       - If there was any question as to the appropriate license identifier,
         the file was flagged for further research and to be revisited later
         in time.
      
      In total, over 70 hours of logged manual review was done on the
      spreadsheet to determine the SPDX license identifiers to apply to the
      source files by Kate, Philippe, Thomas and, in some cases, confirmation
      by lawyers working with the Linux Foundation.
      
      Kate also obtained a third independent scan of the 4.13 code base from
      FOSSology, and compared selected files where the other two scanners
      disagreed against that SPDX file, to see if there was new insights.  The
      Windriver scanner is based on an older version of FOSSology in part, so
      they are related.
      
      Thomas did random spot checks in about 500 files from the spreadsheets
      for the uapi headers and agreed with SPDX license identifier in the
      files he inspected. For the non-uapi files Thomas did random spot checks
      in about 15000 files.
      
      In initial set of patches against 4.14-rc6, 3 files were found to have
      copy/paste license identifier errors, and have been fixed to reflect the
      correct identifier.
      
      Additionally Philippe spent 10 hours this week doing a detailed manual
      inspection and review of the 12,461 patched files from the initial patch
      version early this week with:
       - a full scancode scan run, collecting the matched texts, detected
         license ids and scores
       - reviewing anything where there was a license detected (about 500+
         files) to ensure that the applied SPDX license was correct
       - reviewing anything where there was no detection but the patch license
         was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
         SPDX license was correct
      
      This produced a worksheet with 20 files needing minor correction.  This
      worksheet was then exported into 3 different .csv files for the
      different types of files to be modified.
      
      These .csv files were then reviewed by Greg.  Thomas wrote a script to
      parse the csv files and add the proper SPDX tag to the file, in the
      format that the file expected.  This script was further refined by Greg
      based on the output to detect more types of files automatically and to
      distinguish between header and source .c files (which need different
      comment types.)  Finally Greg ran the script using the .csv files to
      generate the patches.
      Reviewed-by: NKate Stewart <kstewart@linuxfoundation.org>
      Reviewed-by: NPhilippe Ombredanne <pombredanne@nexb.com>
      Reviewed-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b2441318
  3. 19 10月, 2017 1 次提交
  4. 10 5月, 2017 1 次提交
    • H
      parisc: Enhance detection of synchronous cr16 clocksources · c8c37359
      Helge Deller 提交于
      The cr16 clocks of the physical PARISC CPUs are usually nonsynchronous.
      Nevertheless, it seems that each CPU socket (which holds two cores) of
      PA8800 and PA8900 CPUs (e.g. in a C8000 workstation) is fed by the same
      clock source, which makes the cr16 clocks of each CPU socket syncronous.
      Let's try to detect such situations and mark the cr16 clocksource stable
      on single-socket and single-core machines.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      c8c37359
  5. 02 3月, 2017 1 次提交
  6. 30 12月, 2016 1 次提交
    • H
      parisc: Mark cr16 clocksource unstable on SMP systems · 41744213
      Helge Deller 提交于
      The cr16 interval timer of each CPU is not syncronized to other cr16
      timers in other CPUs in a SMP system. So, delay the registration of the
      cr16 clocksource until all CPUs have been detected and then - if we are
      on a SMP machine - mark the cr16 clocksource as unstable and lower it's
      rating before registering it at the clocksource framework.
      
      This patch fixes the stalled CPU warnings which we have seen since
      introduction of the cr16 clocksource.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Cc: <stable@vger.kernel.org> # v4.8+
      41744213
  7. 25 12月, 2016 2 次提交
  8. 21 12月, 2016 1 次提交
    • H
      parisc: Optimize timer interrupt function · 160494d3
      Helge Deller 提交于
      Restructure the timer interrupt function to better cope with missed timer irqs.
      Optimize the calculation when the next interrupt should happen and skip irqs if
      they would happen too shortly after exit of the irq function.
      
      The update_process_times() call is done anyway at every timer irq, so we can
      safely drop the prof_counter and prof_multiplier variables from the per_cpu
      structure.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      160494d3
  9. 25 11月, 2016 1 次提交
  10. 26 9月, 2016 1 次提交
    • H
      parisc: Fix self-detected CPU stall warnings on Mako machines · 92420bd0
      Helge Deller 提交于
      The config option HAVE_UNSTABLE_SCHED_CLOCK is set automatically when compiling
      for SMP. There is no need to clear the stable-clock flag via
      clear_sched_clock_stable() when starting secondary CPUs, and even worse,
      clearing it triggers wrong self-detected CPU stall warnings on 64bit Mako
      machines.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Cc: stable@vger.kernel.org # 4.7+
      92420bd0
  11. 20 8月, 2016 1 次提交
    • H
      parisc: Fix automatic selection of cr16 clocksource · ae141830
      Helge Deller 提交于
      Commit 54b66800 (parisc: Add native high-resolution sched_clock()
      implementation) added support to use the CPU-internal cr16 counters as reliable
      clocksource with the help of HAVE_UNSTABLE_SCHED_CLOCK.
      
      Sadly the commit missed to remove the hack which prevented cr16 to become the
      default clocksource even on SMP systems.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Cc: stable@vger.kernel.org # 4.7+
      ae141830
  12. 05 6月, 2016 1 次提交
  13. 04 6月, 2016 1 次提交
  14. 23 5月, 2016 1 次提交
    • H
      parisc: Add native high-resolution sched_clock() implementation · 54b66800
      Helge Deller 提交于
      Add a native implementation for the sched_clock() function which utilizes the
      processor-internal cycle counter (Control Register 16) as high-resolution time
      source.
      
      With this patch we now get much more fine-grained resolutions in various
      in-kernel time measurements (e.g. when viewing the function tracing logs), and
      probably a more accurate scheduling on SMP systems.
      
      There are a few specific implementation details in this patch:
      
      1. On a 32bit kernel we emulate the higher 32bits of the required 64-bit
      resolution of sched_clock() by increasing a per-cpu counter at every
      wrap-around of the 32bit cycle counter.
      
      2. In a SMP system, the cycle counters of the various CPUs are not syncronized
      (similiar to the TSC in a x86_64 system). To cope with this we define
      HAVE_UNSTABLE_SCHED_CLOCK and let the upper layers do the adjustment work.
      
      3. Since we need HAVE_UNSTABLE_SCHED_CLOCK, we need to provide a cmpxchg64()
      function even on a 32-bit kernel.
      
      4. A 64-bit SMP kernel which is started on a UP system will mark the
      sched_clock() implementation as "stable", which means that we don't expect any
      jumps in the returned counter. This is true because we then run only on one
      CPU.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      54b66800
  15. 08 9月, 2015 2 次提交
  16. 11 5月, 2012 1 次提交
    • R
      parisc: move definition of PAGE0 to asm/page.h · 4a8a0788
      Rolf Eike Beer 提交于
      This was defined in asm/pdc.h which needs to include asm/page.h for
      __PAGE_OFFSET. This leads to an include loop so that page.h eventually will
      include pdc.h again. While this is no problem because of header guards, it is
      a problem because some symbols may be undefined. Such an error is this:
      
      In file included from include/linux/bitops.h:35:0,
                       from include/asm-generic/getorder.h:7,
                       from arch/parisc/include/asm/page.h:162,
                       from arch/parisc/include/asm/pdc.h:346,
                       from arch/parisc/include/asm/processor.h:16,
                       from arch/parisc/include/asm/spinlock.h:6,
                       from arch/parisc/include/asm/atomic.h:20,
                       from include/linux/atomic.h:4,
                       from include/linux/sysfs.h:20,
                       from include/linux/kobject.h:21,
                       from include/linux/device.h:17,
                       from include/linux/eisa.h:5,
                       from arch/parisc/kernel/pci.c:11:
      arch/parisc/include/asm/bitops.h: In function ‘set_bit’:
      arch/parisc/include/asm/bitops.h:82:2: error: implicit declaration of function ‘_atomic_spin_lock_irqsave’ [-Werror=implicit-function-declaration]
      arch/parisc/include/asm/bitops.h:84:2: error: implicit declaration of function ‘_atomic_spin_unlock_irqrestore’ [-Werror=implicit-function-declaration]
      Signed-off-by: NRolf Eike Beer <eike-kernel@sf-tec.de>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4a8a0788
  17. 22 11月, 2011 1 次提交
  18. 31 1月, 2011 1 次提交
  19. 07 3月, 2010 1 次提交
  20. 03 7月, 2009 2 次提交
    • G
      parisc: fix "delay!" timer handling · 84be31be
      Grant Grundler 提交于
      Rewrote timer_interrupt() to properly handle the "delayed!" case.
      
      If we used floating point math to compute the number of ticks that had
      elapsed since the last timer interrupt, it could take up to 12K cycles
      (emperical!) to handle the interrupt. Existing code assumed it would
      never take more than 8k cycles. We end up programming Interval Timer
      to a value less than "current" cycle counter.  Thus have to wait until
      Interval Timer "wrapped" and would then get the "delayed!" printk that
      I moved below.
      
      Since we don't really know what the upper limit is, I prefer to read
      CR16 again after we've programmed it to make sure we won't have to
      wait for CR16 to wrap.
      
      Further, the printk was between reading CR16 (cycle couner) and writing CR16
      (the interval timer). This would cause us to continue to set the interval
      timer to a value that was "behind" the cycle counter. Rinse and repeat.
      So no printk's between reading CR16 and setting next interval timer.
      
      Tested on A500 (550 Mhz PA8600).
      Signed-off-by: NGrant Grundler <grundler@parisc-linux.org>
      Tested-by: NKyle McMartin <kyle@mcmartin.ca>
      Signed-off-by: NKyle McMartin <kyle@mcmartin.ca>
      
      ----
      Kyle, Helge, and other parisc's,
      Please test on 32-bit before committing.
      I think I have it right but recognize I might not.
      
      TODO: I wanted to use "do_div()" in order to get both remainder
      and value back with one division op. That should help with the
      latency alot but can be applied seperately from this patch.
      
      thanks,
      grant
      84be31be
    • C
      parisc: add parameter to read_cr16() · ebc30a0f
      Coly Li 提交于
      This patch modifies parameter of au1x_counter1_read() from 'void' to 'struct
      clocksource *cs', which fixes compile warning for incompatible parameter type.
      Signed-off-by: NColy Li <coly.li@suse.de>
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Cc: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: NKyle McMartin <kyle@mcmartin.ca>
      ebc30a0f
  21. 02 4月, 2009 1 次提交
  22. 01 4月, 2009 2 次提交
  23. 31 3月, 2009 1 次提交
  24. 06 1月, 2009 1 次提交
  25. 11 10月, 2008 1 次提交
  26. 18 10月, 2007 1 次提交
  27. 23 5月, 2007 1 次提交
  28. 27 2月, 2007 4 次提交
  29. 17 2月, 2007 3 次提交
  30. 12 2月, 2007 1 次提交