Subject: [PATCH] x86: apic: Export symbols for extended interrupt LVT functions

Signed-off-by: Robert Richter <[email protected]>
---
arch/x86/kernel/apic_64.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c
index 5a31a8c..a678e8f 100644
--- a/arch/x86/kernel/apic_64.c
+++ b/arch/x86/kernel/apic_64.c
@@ -209,12 +209,14 @@ u8 setup_APIC_eilvt_mce(u8 vector, u8 msg_type, u8 mask)
setup_APIC_eilvt(APIC_EILVT_LVTOFF_MCE, vector, msg_type, mask);
return APIC_EILVT_LVTOFF_MCE;
}
+EXPORT_SYMBOL(setup_APIC_eilvt_mce);

u8 setup_APIC_eilvt_ibs(u8 vector, u8 msg_type, u8 mask)
{
setup_APIC_eilvt(APIC_EILVT_LVTOFF_IBS, vector, msg_type, mask);
return APIC_EILVT_LVTOFF_IBS;
}
+EXPORT_SYMBOL(setup_APIC_eilvt_ibs);

/*
* Program the next event, relative to now
--
1.5.1.6



2007-12-05 16:53:46

by Arjan van de Ven

[permalink] [raw]
Subject: Re: [PATCH] x86: apic: Export symbols for extended interrupt LVT functions

On Wed, 5 Dec 2007 17:40:14 +0100 (CET)
"Robert Richter" <[email protected]> wrote:


which kernel code is using or going to use these export?

> Signed-off-by: Robert Richter <[email protected]>
> ---
> arch/x86/kernel/apic_64.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c
> index 5a31a8c..a678e8f 100644
> --- a/arch/x86/kernel/apic_64.c
> +++ b/arch/x86/kernel/apic_64.c
> @@ -209,12 +209,14 @@ u8 setup_APIC_eilvt_mce(u8 vector, u8 msg_type,
> u8 mask) setup_APIC_eilvt(APIC_EILVT_LVTOFF_MCE, vector, msg_type,
> mask); return APIC_EILVT_LVTOFF_MCE;
> }
> +EXPORT_SYMBOL(setup_APIC_eilvt_mce);
>
> u8 setup_APIC_eilvt_ibs(u8 vector, u8 msg_type, u8 mask)
> {
> setup_APIC_eilvt(APIC_EILVT_LVTOFF_IBS, vector, msg_type,
> mask); return APIC_EILVT_LVTOFF_IBS;
> }
> +EXPORT_SYMBOL(setup_APIC_eilvt_ibs);
>
> /*
> * Program the next event, relative to now


--
If you want to reach me at my work email, use [email protected]
For development, discussion and tips for power savings,
visit http://www.lesswatts.org

Subject: Re: [PATCH] x86: apic: Export symbols for extended interrupt LVT functions

On 05.12.07 08:51:02, Arjan van de Ven wrote:
> which kernel code is using or going to use these export?

For IBS it is Perfmon. See here:
http://git.kernel.org/?p=linux/kernel/git/eranian/linux-2.6.git;a=commit;h=7caef3e19d17349f869884f5adf7c9823e32ade7

MCE export has been added for consistency reasons to allow modules to
enable MCE.

-Robert

--
Advanced Micro Devices, Inc.
Operating System Research Center
email: [email protected]