x86, mce: rename mce_notify_user to mce_notify_irq
authorAndi Kleen <andi@firstfloor.org>
Wed, 27 May 2009 19:56:58 +0000 (21:56 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 3 Jun 2009 21:48:04 +0000 (14:48 -0700)
Rename the mce_notify_user function to mce_notify_irq. The next
patch will split the wakeup handling of interrupt context
and of process context and it's better to give it a clearer
name for this.

Contains a fix from Ying Huang

[ Impact: cleanup ]

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Cc: Huang Ying <ying.huang@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mcheck/mce-inject.c
arch/x86/kernel/cpu/mcheck/mce.c
arch/x86/kernel/cpu/mcheck/mce_intel_64.c
arch/x86/kernel/signal.c

index afd3cdf6f8ad65a1053688dccde985d3063c7a68..713926b62cbb08471c99d961adfcd87b68a23b98 100644 (file)
@@ -159,7 +159,7 @@ enum mcp_flags {
 };
 void machine_check_poll(enum mcp_flags flags, mce_banks_t *b);
 
-int mce_notify_user(void);
+int mce_notify_irq(void);
 
 DECLARE_PER_CPU(struct mce, injectm);
 extern struct file_operations mce_chrdev_ops;
index 7d858fb4ce676c1855fffbac279914e837a1aa56..a3a235a53f091e01bfd509e0bfed353f232e7d83 100644 (file)
@@ -65,7 +65,7 @@ static void raise_mce(unsigned long data)
                memset(&b, 0xff, sizeof(mce_banks_t));
                printk(KERN_INFO "Starting machine check poll CPU %d\n", cpu);
                machine_check_poll(0, &b);
-               mce_notify_user();
+               mce_notify_irq();
                printk(KERN_INFO "Finished machine check poll on CPU %d\n",
                       cpu);
        }
index f051a7807ab4dd44ff280ead04b060d3c3050d47..13e1b7ffe73a98ce04a8f395e8cd988c42e14005 100644 (file)
@@ -348,7 +348,7 @@ asmlinkage void smp_mce_self_interrupt(struct pt_regs *regs)
        ack_APIC_irq();
        exit_idle();
        irq_enter();
-       mce_notify_user();
+       mce_notify_irq();
        irq_exit();
 }
 #endif
@@ -356,7 +356,7 @@ asmlinkage void smp_mce_self_interrupt(struct pt_regs *regs)
 static void mce_report_event(struct pt_regs *regs)
 {
        if (regs->flags & (X86_VM_MASK|X86_EFLAGS_IF)) {
-               mce_notify_user();
+               mce_notify_irq();
                return;
        }
 
@@ -968,7 +968,7 @@ static void mcheck_timer(unsigned long data)
         * polling interval, otherwise increase the polling interval.
         */
        n = &__get_cpu_var(next_interval);
-       if (mce_notify_user())
+       if (mce_notify_irq())
                *n = max(*n/2, HZ/100);
        else
                *n = min(*n*2, (int)round_jiffies_relative(check_interval*HZ));
@@ -989,7 +989,7 @@ static DECLARE_WORK(mce_trigger_work, mce_do_trigger);
  * Can be called from interrupt context, but not from machine check/NMI
  * context.
  */
-int mce_notify_user(void)
+int mce_notify_irq(void)
 {
        /* Not more than two messages every minute */
        static DEFINE_RATELIMIT_STATE(ratelimit, 60*HZ, 2);
@@ -1014,7 +1014,7 @@ int mce_notify_user(void)
        }
        return 0;
 }
-EXPORT_SYMBOL_GPL(mce_notify_user);
+EXPORT_SYMBOL_GPL(mce_notify_irq);
 
 /*
  * Initialize Machine Checks for a CPU.
index eff3740501a36c3abcf0fa5c3d7fe1b39cef5edc..b7c5a2470b404d4789599b09795898c567c5469d 100644 (file)
@@ -80,7 +80,7 @@ static int cmci_supported(int *banks)
 static void intel_threshold_interrupt(void)
 {
        machine_check_poll(MCP_TIMESTAMP, &__get_cpu_var(mce_banks_owned));
-       mce_notify_user();
+       mce_notify_irq();
 }
 
 static void print_update(char *type, int *hdr, int num)
index d0851e3f77eb52932252b35074f027ac081ab86e..d5dc15bce005e7e14f3e331d074f43720075e483 100644 (file)
@@ -860,7 +860,7 @@ do_notify_resume(struct pt_regs *regs, void *unused, __u32 thread_info_flags)
 #ifdef CONFIG_X86_NEW_MCE
        /* notify userspace of pending MCEs */
        if (thread_info_flags & _TIF_MCE_NOTIFY)
-               mce_notify_user();
+               mce_notify_irq();
 #endif /* CONFIG_X86_64 && CONFIG_X86_MCE */
 
        /* deal with pending signal delivery */
This page took 0.053721 seconds and 5 git commands to generate.