mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
x86, microcode, AMD: Add a vendor-specific exit function
This will be used to do cleanup work before the driver exits. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
This commit is contained in:
parent
dc47ce90c3
commit
f72c1a5765
3 changed files with 11 additions and 0 deletions
|
@ -48,6 +48,7 @@ static inline struct microcode_ops * __init init_intel_microcode(void)
|
|||
|
||||
#ifdef CONFIG_MICROCODE_AMD
|
||||
extern struct microcode_ops * __init init_amd_microcode(void);
|
||||
extern void __exit exit_amd_microcode(void);
|
||||
|
||||
static inline void get_ucode_data(void *to, const u8 *from, size_t n)
|
||||
{
|
||||
|
@ -59,6 +60,7 @@ static inline struct microcode_ops * __init init_amd_microcode(void)
|
|||
{
|
||||
return NULL;
|
||||
}
|
||||
static inline void __exit exit_amd_microcode(void) {}
|
||||
#endif
|
||||
|
||||
#endif /* _ASM_X86_MICROCODE_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue