lkml.org 
[lkml]   [2011]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [patch v2 29/35] Hexagon: Add page table header files & etc.
    Date
    On Tuesday 30 August 2011, Richard Kuo wrote:
    > Removed highmem as we currently don't need it (and it didn't
    > quite work).
    >
    > Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
    > Signed-off-by: Linas Vepstas <linas@codeaurora.org>

    Apparently you haven't removed it completely yet:

    >+/**
    >+ * kunmap - unmaps a kernel mapping
    >+ * @page: pointer to page struct
    >+ *
    >+ * If it's not in highmem, then you ain't unmapping anybody.
    >+ *
    >+ * If it is in highmem, it calls kunmap_high, which magically
    >+ * removes the mapping or something. Seems to only decrement pkmap_count
    >+ * for the page. If the pkmap_count was decremented to 1, that means it's
    >+ * ready to be flushed.
    >+ *
    >+ * It also is responsible for waking anybody up that was waiting for a kmap
    >+ * to free up.
    >+ */
    >+extern void kunmap_hexagon(struct page *page);
    >+#define kunmap(p) kunmap_hexagon((p))
    >+
    >+extern struct page *kmap_atomic_to_page_hexagon(void *ptr);
    >+#define kmap_atomic_to_page(p) kmap_atomic_to_page_hexagon((p))
    >+
    >+extern void *kmap_atomic_prot(struct page *page, pgprot_t prot);
    >+extern void __kunmap_atomic(void *);
    >+
    >+static inline void *__kmap_atomic(struct page *page)
    >+{
    >+ return kmap_atomic_prot(page, kmap_prot);
    >+}

    I think if you disable CONFIG_ARCH_HAS_KMAP you can use the trivial
    functions provided by include/linux/highmem.h.

    Arnd


    \
     
     \ /
      Last update: 2011-08-31 16:59    [W:4.062 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site