From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [Adeos-main] [PATCHES] cleanup minor quirks for 1.6-01 From: Philippe Gerum In-Reply-To: <4572DB9F.7040505@domain.hid> References: <4572DB9F.7040505@domain.hid> Content-Type: text/plain Date: Sun, 03 Dec 2006 15:43:43 +0100 Message-Id: <1165157023.4952.361.camel@domain.hid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: rpm@xenomai.org List-Id: General discussion about Adeos List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: adeos-main@gna.org On Sun, 2006-12-03 at 15:13 +0100, Jan Kiszka wrote: > Hi, > > I came across a few things in latest 2.6.19-i386-1.6-01 patch: > > The usage of __ipipe_pipelock in __ipipe_common_info_proc is broken (raw lock used as > Linux lock here), and I do not see any volatile data it could protect anyway. So let's > remove it. The interrupt status word, and whether any virtual interrupt is allocated or not, are the volatile data protected by this lock on a SMP system. Since this is a common spinlock with no interrupt control required which is only used over the Linux domain (/proc handler), you don't need to go for the _hw() form of it. [...] > > The hard IRQ state of the tracer output got inverted during recent restructuring. This > fixes it (and indents a few labels correctly). > Ack. Merged. [...] > And finally, ipipe_init_proc can be moved to the __init section. > > --- linux-2.6.19-ipipe.orig/kernel/ipipe/core.c > +++ linux-2.6.19-ipipe/kernel/ipipe/core.c > @@ -1362,7 +1362,7 @@ void __ipipe_remove_domain_proc(struct i > remove_proc_entry(ipd->name,ipipe_proc_root); > } > > -void ipipe_init_proc(void) > +void __init ipipe_init_proc(void) > { > ipipe_proc_root = create_proc_entry("ipipe",S_IFDIR, 0); > create_proc_read_entry("version",0444,ipipe_proc_root,&__ipipe_version_info_proc,NULL); > Ack. Merged. > > > There is more cleanup stuff in my pipe, one of it (type-based spinlock selection) > could be helpful for follow-up work on other archs. It's almost done, I will try to > prepare patch series over the next days. Thanks. -- Philippe.