mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 07:15:58 +08:00
Fix sporadic test failures via uma_timeout()
This commit is contained in:
@@ -695,4 +695,7 @@ struct uma_percpu_stat {
|
||||
void uma_reclaim_wakeup(void);
|
||||
void uma_reclaim_worker(void *);
|
||||
|
||||
#ifdef __rtems__
|
||||
void rtems_uma_drain_timeout(void);
|
||||
#endif /* __rtems__ */
|
||||
#endif /* _VM_UMA_H_ */
|
||||
|
@@ -3814,3 +3814,15 @@ DB_SHOW_COMMAND(umacache, db_show_umacache)
|
||||
}
|
||||
#endif /* DDB */
|
||||
#endif /* __rtems__ */
|
||||
#ifdef __rtems__
|
||||
/*
|
||||
* This is a helper routine for test programs. The uma_timeout() may need some
|
||||
* dynamic memory. This could disturb out of memory tests.
|
||||
*/
|
||||
void
|
||||
rtems_uma_drain_timeout(void)
|
||||
{
|
||||
|
||||
callout_drain(&uma_callout);
|
||||
}
|
||||
#endif /* __rtems__ */
|
||||
|
Reference in New Issue
Block a user