hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
kernel/arch/x86/kernel/cpu/mtrr/generic.c
....@@ -450,13 +450,13 @@
450450 {
451451 unsigned long flags;
452452
453
- local_irq_save(flags);
453
+ flags = hard_local_irq_save();
454454 prepare_set();
455455
456456 pat_init();
457457
458458 post_set();
459
- local_irq_restore(flags);
459
+ hard_local_irq_restore(flags);
460460 }
461461
462462 /* Grab all of the MTRR state for this CPU into *state */
....@@ -797,7 +797,7 @@
797797 unsigned long mask, count;
798798 unsigned long flags;
799799
800
- local_irq_save(flags);
800
+ flags = hard_local_irq_save();
801801 prepare_set();
802802
803803 /* Actually set the state */
....@@ -807,7 +807,7 @@
807807 pat_init();
808808
809809 post_set();
810
- local_irq_restore(flags);
810
+ hard_local_irq_restore(flags);
811811
812812 /* Use the atomic bitops to update the global mask */
813813 for (count = 0; count < sizeof(mask) * 8; ++count) {
....@@ -836,7 +836,7 @@
836836
837837 vr = &mtrr_state.var_ranges[reg];
838838
839
- local_irq_save(flags);
839
+ flags = hard_local_irq_save();
840840 prepare_set();
841841
842842 if (size == 0) {
....@@ -857,7 +857,7 @@
857857 }
858858
859859 post_set();
860
- local_irq_restore(flags);
860
+ hard_local_irq_restore(flags);
861861 }
862862
863863 int generic_validate_add_page(unsigned long base, unsigned long size,