lkml.org 
[lkml]   [2008]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 13/56] microblaze_v2: PVR support, cpuinfo support
From
Date

> +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?




\
 
 \ /
  Last update: 2008-05-05 04:17    [W:0.181 / U:4.444 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site