add PTATTR_FOR_USER flag to enum ihk_mc_ap_flag

This commit is contained in:
Tomoki Shirasawa
2013-06-02 13:57:44 +09:00
parent 5d9efa7241
commit 2627d4df55
3 changed files with 9 additions and 7 deletions

View File

@@ -91,6 +91,7 @@ enum ihk_mc_pt_attribute {
PTATTR_USER = 0x04,
PTATTR_LARGEPAGE = 0x80,
PTATTR_UNCACHABLE = 0x10000,
PTATTR_FOR_USER = 0x20000,
};
typedef unsigned long pte_t;

View File

@@ -302,7 +302,8 @@ static int __set_pt_page(struct page_table *pt, void *virt, unsigned long phys,
struct page_table *newpt;
enum ihk_mc_ap_flag ap_flag;
ap_flag = attr & PTATTR_USER? IHK_MC_AP_NOWAIT: IHK_MC_AP_CRITICAL;
ap_flag = (attr & (PTATTR_USER | PTATTR_FOR_USER)) ?
IHK_MC_AP_NOWAIT: IHK_MC_AP_CRITICAL;
if (!pt) {
pt = init_pt;