Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f80be5e3 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

x86/hpet: Use proper mask to modify hotplug action



Magic hex constants are a guarantee for wreckage when the defines change.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent f47ab81a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -717,7 +717,7 @@ static int hpet_cpuhp_notify(struct notifier_block *n,
	struct hpet_work_struct work;
	struct hpet_work_struct work;
	struct hpet_dev *hdev = per_cpu(cpu_hpet_dev, cpu);
	struct hpet_dev *hdev = per_cpu(cpu_hpet_dev, cpu);


	switch (action & 0xf) {
	switch (action & ~CPU_TASKS_FROZEN) {
	case CPU_ONLINE:
	case CPU_ONLINE:
		INIT_DELAYED_WORK_ONSTACK(&work.work, hpet_work);
		INIT_DELAYED_WORK_ONSTACK(&work.work, hpet_work);
		init_completion(&work.complete);
		init_completion(&work.complete);