public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* the difference between irq save and the irq disable ?
@ 2005-09-05 13:33 mandy london
  2005-09-06  6:47 ` Tushar Adeshara
  0 siblings, 1 reply; 2+ messages in thread
From: mandy london @ 2005-09-05 13:33 UTC (permalink / raw)
  To: linux-kernel

in my mind, irq save only store the conditions of that time ,  and the
following code can access the shared region and change it ,so modify 
irq  states .

while , disable irq  keeps the states of interrupt unchangable .

but , I have no knowlege of the difference between code in irq save
and irq restore and  in irq disable and irq enable ?

whethe the former can be interrupted and the later not ? only this ?

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

* Re: the difference between irq save and the irq disable ?
  2005-09-05 13:33 the difference between irq save and the irq disable ? mandy london
@ 2005-09-06  6:47 ` Tushar Adeshara
  0 siblings, 0 replies; 2+ messages in thread
From: Tushar Adeshara @ 2005-09-06  6:47 UTC (permalink / raw)
  To: mandy london; +Cc: linux-kernel

On 9/5/05, mandy london <laborious.bee@gmail.com> wrote:
> in my mind, irq save only store the conditions of that time ,  and the
> following code can access the shared region and change it ,so modify
> irq  states .
> 
> while , disable irq  keeps the states of interrupt unchangable .
> 
> but , I have no knowlege of the difference between code in irq save
> and irq restore and  in irq disable and irq enable ?
> 
> whethe the former can be interrupted and the later not ? only this ?

Have a look at Documentaion/cli-sti-removal.txt. As per that,
irq_enable will enable all irqs and irq_restore will bring irq status
to the one it was
before irq_save.
                            And as per my knowledge, non are
interruptible except case of RT.

> -
> 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/
> 


-- 
Regards,
Tushar
--------------------
It's not a problem, it's an opportunity for improvement. Lets improve.

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

end of thread, other threads:[~2005-09-06  6:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-05 13:33 the difference between irq save and the irq disable ? mandy london
2005-09-06  6:47 ` Tushar Adeshara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox