Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1159819

Re: [PATCH RFC] hwspinlock: Don't take software spinlock before hwspinlock

From Ohad Ben-Cohen <ohad@wizery.com>
Newsgroups linux.kernel
Subject Re: [PATCH RFC] hwspinlock: Don't take software spinlock before hwspinlock
Date 2015-06-06 05:30 +0200
Message-ID <pycY2-4os-1@gated-at.bofh.it> (permalink)
References (4 earlier) <pruQ2-1PV-15@gated-at.bofh.it> <ptcci-7se-3@gated-at.bofh.it> <putNM-6Kl-9@gated-at.bofh.it> <pxOsG-1zh-5@gated-at.bofh.it> <py9GO-7Mb-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Jun 6, 2015 at 2:50 AM, Jeffrey Hugo <jhugo@codeaurora.org> wrote:
> If you still wish to scope out a capability based alternative, would you
> please provide some details about how you envision it working?  An example
> of the API, how it would be used, future usecases that might be covered by
> it, etc.  That would give us specifics we can discuss and weigh the merits
> of.

How about:
- add a 'hwcaps' member to hwspinlock_device, and define single cap
called HWL_CAP_ALLOW_RAW
- add new 'hwcaps' parameter to hwspin_lock_register
- omap_hwspinlock.c will pass NULL, qcom_hwspinlock will pass HWL_CAP_ALLOW_RAW
- hwspin_lock_register will set hwcaps accordingly
- before a lock is taken in RAW mode, the capabilities are checked
- document everything nicely

Unless I'm missing something, it should take 5 minutes or less. For
reference, feel free to check out mmc_host's caps member and its
usage.

Thanks,
Ohad.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: [PATCH RFC] hwspinlock: Don't take software spinlock before hwspinlock Jeffrey Hugo <jhugo@codeaurora.org> - 2015-06-06 02:00 +0200
  Re: [PATCH RFC] hwspinlock: Don't take software spinlock before hwspinlock Ohad Ben-Cohen <ohad@wizery.com> - 2015-06-06 05:30 +0200

csiph-web