diff options
author | Michael Neuling <mikey@neuling.org> | 2012-09-06 17:24:57 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-09-09 19:59:13 -0400 |
commit | cd14457304c9d232267a3a76a2a43f1f791e545d (patch) | |
tree | defabdab4b813faf7bcd083f8670020cf799003c /arch/powerpc/platforms | |
parent | 4474ef055c5d8cb8eaf002d69e49af71e3aa3a88 (diff) |
powerpc: Dynamically calculate the dabrx based on kernel/user/hypervisor
Currently we mark the DABRX to interrupt on all matches
(hypervisor/kernel/user and then filter in software. We can be a lot
smarter now that we can set the DABRX dynamically.
This sets the DABRX based on the flags passed by the user.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/pseries/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index a3a69658a6ec..e3cb7ae61658 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c | |||
@@ -425,7 +425,7 @@ static int pseries_set_xdabr(unsigned long dabr, unsigned long dabrx) | |||
425 | if (dabrx == 0 && dabr == 0) | 425 | if (dabrx == 0 && dabr == 0) |
426 | dabrx = DABRX_USER; | 426 | dabrx = DABRX_USER; |
427 | /* PAPR says we can only set kernel and user bits */ | 427 | /* PAPR says we can only set kernel and user bits */ |
428 | dabrx &= H_DABRX_KERNEL | H_DABRX_USER; | 428 | dabrx &= DABRX_KERNEL | DABRX_USER; |
429 | 429 | ||
430 | return plpar_hcall_norets(H_SET_XDABR, dabr, dabrx); | 430 | return plpar_hcall_norets(H_SET_XDABR, dabr, dabrx); |
431 | } | 431 | } |