Re: wait_event()\ wait_event_interruptible()\ wait_event_interruptible_timeout() and wake_up()

2019-07-29 Thread Muni Sekhar
On Mon, Jul 29, 2019 at 11:57 PM Valdis Klētnieks wrote: > > On Mon, 29 Jul 2019 22:48:57 +0530, Muni Sekhar said: > > Let us assume that multiple processes are waiting on wait_event()\ > > wait_event_interruptible()\ wait_event_interruptible_timeout(), which > > process gets woken up on calling w

Re: wait_event()\ wait_event_interruptible()\ wait_event_interruptible_timeout() and wake_up()

2019-07-29 Thread Valdis Klētnieks
On Mon, 29 Jul 2019 23:37:34 +0530, Muni Sekhar said: > On Mon, Jul 29, 2019 at 11:31 PM Bharath Vedartham > wrote: > > Sorry to spoil the fun here. But check out what the queue data structure > > is all about. 'wait_queue' :) > A wait queue is a doubly linked list of wait_queue_t structures that

Re: wait_event()\ wait_event_interruptible()\ wait_event_interruptible_timeout() and wake_up()

2019-07-29 Thread Valdis Klētnieks
On Mon, 29 Jul 2019 22:48:57 +0530, Muni Sekhar said: > Let us assume that multiple processes are waiting on wait_event()\ > wait_event_interruptible()\ wait_event_interruptible_timeout(), which > process gets woken up on calling wake_up()?? > > I presume wake_up() picks one process, but is there a

Re: wait_event()\ wait_event_interruptible()\ wait_event_interruptible_timeout() and wake_up()

2019-07-29 Thread Muni Sekhar
On Mon, Jul 29, 2019 at 11:31 PM Bharath Vedartham wrote: > > On Mon, Jul 29, 2019 at 10:48:57PM +0530, Muni Sekhar wrote: > > Hi All, > > > > Let us assume that multiple processes are waiting on wait_event()\ > > wait_event_interruptible()\ wait_event_interruptible_timeout(), which > > process ge

Re: wait_event()\ wait_event_interruptible()\ wait_event_interruptible_timeout() and wake_up()

2019-07-29 Thread Bharath Vedartham
On Mon, Jul 29, 2019 at 10:48:57PM +0530, Muni Sekhar wrote: > Hi All, > > Let us assume that multiple processes are waiting on wait_event()\ > wait_event_interruptible()\ wait_event_interruptible_timeout(), which > process gets woken up on calling wake_up()?? > > I presume wake_up() picks one pr

interrupt latency

2019-07-29 Thread Muni Sekhar
Hi All, I used the Linux kernel’s ‘Ftrace’ framework for tracing the interrupt latencies. Sometimes I noticed a delay(time between do_IRQ() to start of ISR()) in start of ISR(interrupt service routine) to execute , some other times I noticed ISR execution time(entering and exiting a function) is

Re: wait_event()\ wait_event_interruptible()\ wait_event_interruptible_timeout() and wake_up()

2019-07-29 Thread Greg KH
On Mon, Jul 29, 2019 at 10:48:57PM +0530, Muni Sekhar wrote: > Hi All, > > Let us assume that multiple processes are waiting on wait_event()\ > wait_event_interruptible()\ wait_event_interruptible_timeout(), which > process gets woken up on calling wake_up()?? > > I presume wake_up() picks one pr

wait_event()\ wait_event_interruptible()\ wait_event_interruptible_timeout() and wake_up()

2019-07-29 Thread Muni Sekhar
Hi All, Let us assume that multiple processes are waiting on wait_event()\ wait_event_interruptible()\ wait_event_interruptible_timeout(), which process gets woken up on calling wake_up()?? I presume wake_up() picks one process, but is there any algorithm to pick which process? -- Thanks, Sekh

Re: newbie-level question about cgroups

2019-07-29 Thread Robert P. J. Day
On Sun, 28 Jul 2019, Valdis Klētnieks wrote: > On Sun, 28 Jul 2019 15:39:26 -0400, "Robert P. J. Day" said: > > > no point bugging the actual cgroup people about this since it > > should be simple ... if i need *only* cgroup v2, can i dispense > > entirely with everything under /sys/fs/cgroup/ o

of_parse_phandle in device_node

2019-07-29 Thread Nuno Sá
Hi guys, So I'm working on a driver and on dt parsing i need to get a reference to device_node using of_parse_phandle. I was trying to see if there is any equivalent on the fwnode_* api's and i could find nothing... I use device_for_each_child_node(dev, child) { ... } and then some of