On spin_lock_irq_save and disabling specific interrupts.

2014-11-02 Thread mind entropy
Hi, When I do spin_lock_irq it disables IRQ's which were enabled. What is the reason for disabling all the irq's rather than disabling the specific IRQ line which shares the resource? Wouldn't this be more efficient and would not lose any interrupts especially if I have a critical sensor ADC?

Re: On spin_lock_irq_save and disabling specific interrupts.

2014-11-02 Thread Dave Tian
The simple answer would be we do not want to be interrupted during a interrupt handler. For SMP, there are other CPUs which can respond to IRQs. -daveti On Nov 2, 2014, at 2:30 PM, mind entropy mindentr...@gmail.com wrote: Hi, When I do spin_lock_irq it disables IRQ's which were

[PATCH] staging: bcm: vendorspecificextn: Fix coding style

2014-11-02 Thread Sunil Shahu
Hello, I was going through kernel source and found out that I can work on staging area for fixes. I have generated a patch for coding style fixes. I have few questions about how do submit my patch and to whom. 1) Is it ok if I send it directly to Greg Kroah-Hartman

Re: [PATCH] staging: bcm: vendorspecificextn: Fix coding style

2014-11-02 Thread Giedrius Statkevicius
On 2014.11.02 16:39, Sunil Shahu wrote: Hello, I was going through kernel source and found out that I can work on staging area for fixes. Hello, that's ok. Many people start there. I have generated a patch for coding style fixes. I have few questions about how do submit my patch and to

Fwd: Re: [PATCH] staging: Fix checkpatch error messages about unneeded space before commas in ms.c

2014-11-02 Thread nick
Forwarded Message Subject: Re: [PATCH] staging: Fix checkpatch error messages about unneeded space before commas in ms.c Date: Sun, 2 Nov 2014 15:56:36 +0100 From: Peter Senna Tschudin peter.se...@gmail.com To: Nicholas Krause xerofo...@gmail.com This is good! You can try to

Re: copy_from_user user space address mapping in the kernel page table.

2014-11-02 Thread Valdis . Kletnieks
On Sun, 02 Nov 2014 19:57:44 +0530, mind entropy said: In the copy_from_user when the user passes the virtual address is the address mapped in the kernel page tables? Actually, a large part of the reason for copy_from_user()'s existence is to deal with the possibility that the page is *not*

little at eudyptula-challenge.org

2014-11-02 Thread Manohar Singh
-- Regards, Manohar Singh Aswal. +91-9916523441 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: copy_from_user user space address mapping in the kernel page table.

2014-11-02 Thread mind entropy
On Mon, Nov 3, 2014 at 6:45 AM, valdis.kletni...@vt.edu wrote: On Sun, 02 Nov 2014 19:57:44 +0530, mind entropy said: In the copy_from_user when the user passes the virtual address is the address mapped in the kernel page tables? Actually, a large part of the reason for copy_from_user()'s