Skip to content

Commit cb16b67

Browse files
danvetickle
authored andcommitted
agp: kill agp_rebind_memory
Its only user, intel-gtt.c is now gone. Cc: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
1 parent 76aaf22 commit cb16b67

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

‎drivers/char/agp/generic.c‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -480,26 +480,6 @@ int agp_unbind_memory(struct agp_memory *curr)
480480
}
481481
EXPORT_SYMBOL(agp_unbind_memory);
482482

483-
/**
484-
* agp_rebind_emmory - Rewrite the entire GATT, useful on resume
485-
*/
486-
int agp_rebind_memory(void)
487-
{
488-
struct agp_memory *curr;
489-
int ret_val = 0;
490-
491-
spin_lock(&agp_bridge->mapped_lock);
492-
list_for_each_entry(curr, &agp_bridge->mapped_list, mapped_list) {
493-
ret_val = curr->bridge->driver->insert_memory(curr,
494-
curr->pg_start,
495-
curr->type);
496-
if (ret_val != 0)
497-
break;
498-
}
499-
spin_unlock(&agp_bridge->mapped_lock);
500-
return ret_val;
501-
}
502-
EXPORT_SYMBOL(agp_rebind_memory);
503483

504484
/* End - Routines for handling swapping of agp_memory into the GATT */
505485

‎include/linux/agp_backend.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ extern struct agp_memory *agp_allocate_memory(struct agp_bridge_data *, size_t,
102102
extern int agp_copy_info(struct agp_bridge_data *, struct agp_kern_info *);
103103
extern int agp_bind_memory(struct agp_memory *, off_t);
104104
extern int agp_unbind_memory(struct agp_memory *);
105-
extern int agp_rebind_memory(void);
106105
extern void agp_enable(struct agp_bridge_data *, u32);
107106
extern struct agp_bridge_data *agp_backend_acquire(struct pci_dev *);
108107
extern void agp_backend_release(struct agp_bridge_data *);

0 commit comments

Comments
 (0)