All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Anchal Jain <anchalj109@gmail.com>
Cc: outreachy-kernel@googlegroups.com, gregkh@linuxfoundation.org,
	lidza.louina@gmail.com
Subject: Re: [Outreachy kernel] [PATCH] staging: dgnc: dgnc_cls.c: usleep_range is preferred over udelay
Date: Tue, 13 Sep 2016 12:36:00 +0200	[thread overview]
Message-ID: <5166979.RvC7fNVv5n@wuerfel> (raw)
In-Reply-To: <CAAbeOSv0+HCx28Ug1eqEnFsEjT3sMuP6aMUR+J2G_gKFuYYcaw@mail.gmail.com>

On Tuesday, September 13, 2016 1:54:57 PM CEST Anchal Jain wrote:
> > This gets called from cls_copy_data_from_queue_to_uart() under a spinlock.
> 
> According to the documentation "Documentation/timers/timers-howto.txt".
> In this documentation no explanation of "spinlock". What is that meaning?

Holding a spinlock is one of the things that imply "atomic context",
which is mentioned there. Other examples would be

- being called from an interrupt handler
- disabling interrupts
- disabling preemption

	Arnd


  parent reply	other threads:[~2016-09-13 10:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-13  7:52 [PATCH] staging: dgnc: dgnc_cls.c: usleep_range is preferred over udelay Anchal Jain
2016-09-13  7:58 ` [Outreachy kernel] " Julia Lawall
2016-09-13  7:58 ` Arnd Bergmann
2016-09-13  8:24   ` Anchal Jain
2016-09-13  9:47     ` Julia Lawall
2016-09-13 10:36     ` Arnd Bergmann [this message]
2016-09-13 10:45       ` Anchal Jain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5166979.RvC7fNVv5n@wuerfel \
    --to=arnd@arndb.de \
    --cc=anchalj109@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=lidza.louina@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.