Diff of /oprofile_k.c [607565] .. [9c22e5] Maximize Restore

  Switch to side-by-side view

--- a/oprofile_k.c
+++ b/oprofile_k.c
@@ -1,4 +1,4 @@
-/* $Id: oprofile_k.c,v 1.34 2000/12/06 20:39:48 moz Exp $ */
+/* $Id: oprofile_k.c,v 1.35 2000/12/12 02:55:32 moz Exp $ */
 /* COPYRIGHT (C) 2000 THE VICTORIA UNIVERSITY OF MANCHESTER and John Levon
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License as published by the Free
@@ -47,7 +47,7 @@
 	pmd = pmd_offset(pgd, vaddr);
 	pte = pte_offset(pmd, vaddr);
 	prot = PAGE_KERNEL;
-	if (boot_cpu_data.x86_capability & X86_FEATURE_PGE)
+	if (test_bit(X86_FEATURE_PGE, &boot_cpu_data.x86_capability))
 		pgprot_val(prot) |= _PAGE_GLOBAL;
 	set_pte(pte, mk_pte_phys(phys, prot));
 	__flush_tlb_one(vaddr);
@@ -134,6 +134,11 @@
 
 /* --------- device routines ------------- */
 
+int is_map_ready(void)
+{
+	return map_open && hash_map_open;
+}
+
 static u32 output_path_hash(const char *name, uint len);
 
 int oprof_init_hashmap(void)