| Subject | Re: [PATCH 13/56] microblaze_v2: PVR support, cpuinfo support | From | John Williams <> | Date | Mon, 05 May 2008 12:14:23 +1000 |
| |
> +int cpu_has_pvr(void) > +{ > + unsigned flags; > + unsigned pvr0; > + int ret = 0; > + > + local_irq_save(flags); > +
...
> +out: > + local_irq_restore(flags); > + return ret; > +}
The actual IRQ clear/restore is not required - can you just use local_save_flags() or similar to read the MSR?
|