mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
swiotlb: Expose swiotlb_nr_tlb function to modules
As a mechanism to detect whether SWIOTLB is enabled or not. We also fix the spelling - it was swioltb instead of swiotlb. CC: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> [v1: Ripped out swiotlb_enabled] Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
This commit is contained in:
parent
bcdd6b2fd6
commit
f21ffe9f6d
3 changed files with 5 additions and 4 deletions
|
@ -24,7 +24,7 @@ extern int swiotlb_force;
|
|||
|
||||
extern void swiotlb_init(int verbose);
|
||||
extern void swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose);
|
||||
extern unsigned long swioltb_nr_tbl(void);
|
||||
extern unsigned long swiotlb_nr_tbl(void);
|
||||
|
||||
/*
|
||||
* Enumeration for sync targets
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue