All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Xenomai] Philippe Gerum : cobalt/thread: generalize usage of -> lock_count for preemption control
       [not found] <E1ZAZ7w-0003gL-BC@sd-51317.xenomai.org>
@ 2015-07-02 13:37 ` Jan Kiszka
  2015-07-02 13:46   ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2015-07-02 13:37 UTC (permalink / raw)
  To: xenomai, Philippe Gerum

On 2015-07-02 09:41, git repository hosting wrote:
> Module: xenomai-3
> Branch: next
> Commit: 97e32440e9675ba91cdf80b320a35979b935dd8c
> URL:    http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=97e32440e9675ba91cdf80b320a35979b935dd8c
> 
> Author: Philippe Gerum <rpm@xenomai.org>
> Date:   Tue Jun 30 20:36:25 2015 +0200
> 
> cobalt/thread: generalize usage of ->lock_count for preemption control
> 
> XNLOCK is uselessly mirroring only part of the information
> ->lock_count conveys.
> 
> We only need to keep XNLOCK as a mode bit in the ABI between the
> Cobalt core and lib/cobalt for switching the lock from user-space,
> using ->lock_count internally for testing the current preemption
> state.
> 

What about the mode listing in /proc/xenomai/sched/threads? I think it
will not work anymore right now, but likely it's useful to keep this.
The registry daemon should be fine as it builds on top of the
user/kernel ABI, right?

Jan

-- 
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai] Philippe Gerum : cobalt/thread: generalize usage of -> lock_count for preemption control
  2015-07-02 13:37 ` [Xenomai] Philippe Gerum : cobalt/thread: generalize usage of -> lock_count for preemption control Jan Kiszka
@ 2015-07-02 13:46   ` Philippe Gerum
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2015-07-02 13:46 UTC (permalink / raw)
  To: Jan Kiszka, xenomai

On 07/02/2015 03:37 PM, Jan Kiszka wrote:
> On 2015-07-02 09:41, git repository hosting wrote:
>> Module: xenomai-3
>> Branch: next
>> Commit: 97e32440e9675ba91cdf80b320a35979b935dd8c
>> URL:    http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=97e32440e9675ba91cdf80b320a35979b935dd8c
>>
>> Author: Philippe Gerum <rpm@xenomai.org>
>> Date:   Tue Jun 30 20:36:25 2015 +0200
>>
>> cobalt/thread: generalize usage of ->lock_count for preemption control
>>
>> XNLOCK is uselessly mirroring only part of the information
>> ->lock_count conveys.
>>
>> We only need to keep XNLOCK as a mode bit in the ABI between the
>> Cobalt core and lib/cobalt for switching the lock from user-space,
>> using ->lock_count internally for testing the current preemption
>> state.
>>
> 
> What about the mode listing in /proc/xenomai/sched/threads? I think it
> will not work anymore right now, but likely it's useful to keep this.

Correct, this needs fixing too. I'm working on moving XNLBALERT out of
the way, so that we may stop grabbing the big fat lock over xnlock
entirely, which will be nice to rtdm_lock* services.

> The registry daemon should be fine as it builds on top of the
> user/kernel ABI, right?
> 

Same issue than above: we still need to convert a non-zero lock_count to
XNLOCK in the state flags returned to userland.

-- 
Philippe.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-02 13:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1ZAZ7w-0003gL-BC@sd-51317.xenomai.org>
2015-07-02 13:37 ` [Xenomai] Philippe Gerum : cobalt/thread: generalize usage of -> lock_count for preemption control Jan Kiszka
2015-07-02 13:46   ` Philippe Gerum

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.