Skip to content

Instantly share code, notes, and snippets.

@wheresvic
Created November 15, 2019 20:35
Show Gist options
  • Save wheresvic/a118420b9592088ea23c7414e7f2d676 to your computer and use it in GitHub Desktop.
Save wheresvic/a118420b9592088ea23c7414e7f2d676 to your computer and use it in GitHub Desktop.
--- a/nvidia-uvm/uvm8_tools.c
+++ b/nvidia-uvm/uvm8_tools.c
@@ -204,12 +204,14 @@ static bool tracker_is_counter(uvm_tools_event_tracker_t *event_tracker)
return event_tracker != NULL && !event_tracker->is_queue;
}
+/*
static void put_user_pages(struct page **pages, NvU64 page_count)
{
NvU64 i;
for (i = 0; i < page_count; i++)
put_page(pages[i]);
}
+*/
static void unmap_user_pages(struct page **pages, void *addr, NvU64 size)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment