Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / arch / x86 / kernel / hpet.c
index be0ebbb6d1d144fc86bcab6716871ea8cdaa4744..f112af7aa62edb1b6167e1801040af07288fb2ac 100644 (file)
@@ -54,7 +54,7 @@ struct hpet_dev {
        char                            name[10];
 };
 
-inline struct hpet_dev *EVT_TO_HPET_DEV(struct clock_event_device *evtdev)
+static inline struct hpet_dev *EVT_TO_HPET_DEV(struct clock_event_device *evtdev)
 {
        return container_of(evtdev, struct hpet_dev, evt);
 }
@@ -717,7 +717,7 @@ static int hpet_cpuhp_notify(struct notifier_block *n,
        struct hpet_work_struct work;
        struct hpet_dev *hdev = per_cpu(cpu_hpet_dev, cpu);
 
-       switch (action & 0xf) {
+       switch (action & ~CPU_TASKS_FROZEN) {
        case CPU_ONLINE:
                INIT_DELAYED_WORK_ONSTACK(&work.work, hpet_work);
                init_completion(&work.complete);
@@ -773,7 +773,6 @@ static struct clocksource clocksource_hpet = {
        .mask           = HPET_MASK,
        .flags          = CLOCK_SOURCE_IS_CONTINUOUS,
        .resume         = hpet_resume_counter,
-       .archdata       = { .vclock_mode = VCLOCK_HPET },
 };
 
 static int hpet_clocksource_register(void)