forked from Imagelibrary/rtems
bsps/irq: Move bsp_interrupt_handler_is_empty()
This function is only used by one BSP. Update #3269.
This commit is contained in:
@@ -462,22 +462,3 @@ rtems_status_code rtems_interrupt_handler_remove(
|
||||
{
|
||||
return bsp_interrupt_handler_remove(vector, handler, arg);
|
||||
}
|
||||
|
||||
bool bsp_interrupt_handler_is_empty(rtems_vector_number vector)
|
||||
{
|
||||
rtems_vector_number index = 0;
|
||||
rtems_interrupt_entry *head = NULL;
|
||||
bool empty;
|
||||
|
||||
/* For use in interrupts so no lock. */
|
||||
|
||||
/* Get handler table index */
|
||||
index = bsp_interrupt_handler_index(vector);
|
||||
|
||||
/* Get head entry of the handler list for the vector */
|
||||
head = &bsp_interrupt_handler_table [index];
|
||||
|
||||
empty = bsp_interrupt_is_empty_handler_entry(head);
|
||||
|
||||
return empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user