Skip to content
Snippets Groups Projects
  1. Oct 12, 2018
  2. Oct 07, 2018
  3. Sep 20, 2018
  4. Sep 11, 2018
  5. Aug 24, 2018
  6. Aug 02, 2018
  7. Jul 23, 2018
    • Arnd Bergmann's avatar
      Documentation: document ktime_get_*() APIs · 0e3fd810
      Arnd Bergmann authored
      As Dave Chinner points out, we don't have a proper documentation for the
      ktime_get() family of interfaces, making it rather unclear which of the
      over 30 (!) interfaces one should actually use in a driver or elsewhere
      in the kernel.
      
      I wrote up an explanation from how I personally see the interfaces,
      documenting what each of the functions do and hopefully making it a bit
      clearer which should be used where.
      
      This is the first time I tried writing .rst format documentation, so
      in addition to any mistakes in the content, I probably also introduce
      nonstandard formatting ;-)
      
      I first tried to add an extra section to
      Documentation/timers/timekeeping.txt, but this is currently not included
      in the generated API, and it seems useful to have the API docs as part
      of what gets generated in
      https://www.kernel.org/doc/html/latest/core-api/index.html#core-utilities
      
      
      instead, so I started a new file there.
      
      I also considered adding the documentation inline in the
      include/linux/timekeeping.h header, but couldn't figure out how to do
      that in a way that would result both in helpful inline comments as
      well as readable html output, so I settled for the latter, with
      a small note pointing to it from the header.
      
      Cc: Dave Chinner <david@fromorbit.com>
      Cc: John Stultz <john.stultz@linaro.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Stephen Boyd <sboyd@kernel.org>
      Tested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Reviewed-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      0e3fd810
  8. Jul 17, 2018
  9. Jun 30, 2018
  10. Jun 18, 2018
  11. Jun 05, 2018
    • Geert Uytterhoeven's avatar
      lib/vsprintf: Remove atomic-unsafe support for %pCr · 666902e4
      Geert Uytterhoeven authored
      
      "%pCr" formats the current rate of a clock, and calls clk_get_rate().
      The latter obtains a mutex, hence it must not be called from atomic
      context.
      
      Remove support for this rarely-used format, as vsprintf() (and e.g.
      printk()) must be callable from any context.
      
      Any remaining out-of-tree users will start seeing the clock's name
      printed instead of its rate.
      
      Reported-by: default avatarJia-Ju Bai <baijiaju1990@gmail.com>
      Fixes: 900cca29 ("lib/vsprintf: add %pC{,n,r} format specifiers for clocks")
      Link: http://lkml.kernel.org/r/1527845302-12159-5-git-send-email-geert+renesas@glider.be
      
      
      To: Jia-Ju Bai <baijiaju1990@gmail.com>
      To: Jonathan Corbet <corbet@lwn.net>
      To: Michael Turquette <mturquette@baylibre.com>
      To: Stephen Boyd <sboyd@kernel.org>
      To: Zhang Rui <rui.zhang@intel.com>
      To: Eduardo Valentin <edubezval@gmail.com>
      To: Eric Anholt <eric@anholt.net>
      To: Stefan Wahren <stefan.wahren@i2se.com>
      To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
      Cc: Petr Mladek <pmladek@suse.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: linux-doc@vger.kernel.org
      Cc: linux-clk@vger.kernel.org
      Cc: linux-pm@vger.kernel.org
      Cc: linux-serial@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-renesas-soc@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: stable@vger.kernel.org # 4.1+
      Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
      666902e4
  12. May 29, 2018
  13. May 15, 2018
  14. May 08, 2018
  15. Apr 27, 2018
  16. Apr 16, 2018
  17. Mar 23, 2018
  18. Feb 06, 2018
  19. Jan 01, 2018
  20. Dec 21, 2017
    • Tobin C. Harding's avatar
      doc: convert printk-formats.txt to rst · b3ed2321
      Tobin C. Harding authored
      
      Documentation/printk-formats.txt is a candidate for conversion to
      ReStructuredText format. Some effort has already been made to do this
      conversion even thought the suffix is currently .txt
      
      Changes required to complete conversion
      
       - Move printk-formats.txt to core-api/printk-formats.rst
       - Add entry to Documentation/core-api/index.rst
       - Remove entry from Documentation/00-INDEX
       - Fix minor grammatical errors.
       - Order heading adornments as suggested by rst docs.
       - Use 'Passed by reference' uniformly.
       - Update pointer documentation around %px specifier.
       - Fix erroneous double backticks (to commas).
       - Remove extraneous double backticks (suggested by Jonathan Corbet).
       - Simplify documentation for kobject.
      
      Signed-off-by: default avatarTobin C. Harding <me@tobin.cc>
      [jc: downcased "kernel"]
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      b3ed2321
  21. Dec 11, 2017
  22. Dec 02, 2017
  23. Nov 21, 2017
  24. Oct 20, 2017
  25. Oct 19, 2017
  26. Oct 07, 2017
  27. Sep 26, 2017
Loading