remove intr_disabled() as interrupts are always disabled in the kernel now.

This commit is contained in:
Ben Gras
2010-04-26 15:32:42 +00:00
parent 1718924b10
commit 86e8eff905
2 changed files with 0 additions and 18 deletions

View File

@@ -40,16 +40,12 @@ PUBLIC void init_profile_clock(u32_t freq)
{
int irq;
intr_disable();
if((irq = arch_init_profile_clock(freq)) >= 0) {
/* Register interrupt handler for statistical system profiling. */
profile_clock_hook.proc_nr_e = CLOCK;
put_irq_handler(&profile_clock_hook, irq, profile_clock_handler);
enable_irq(&profile_clock_hook);
}
intr_enable();
}
/*===========================================================================*
@@ -57,9 +53,7 @@ PUBLIC void init_profile_clock(u32_t freq)
*===========================================================================*/
PUBLIC void stop_profile_clock()
{
intr_disable();
arch_stop_profile_clock();
intr_enable();
/* Unregister interrupt handler. */
disable_irq(&profile_clock_hook);