diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-10-04 12:41:37 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-12 10:53:41 -0400 |
commit | d0ad63927c6d4d511e172c78ba4a623539ef6901 (patch) | |
tree | f82d2f5b27f5c260c5e2cb3b2cb7b31be5c0f7c4 /drivers/pci | |
parent | a8ef54aeb4308d3730ff31807c495390b98de16a (diff) |
pci: intr_remap: Remove unused functions
No users.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/intr_remapping.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/drivers/pci/intr_remapping.c b/drivers/pci/intr_remapping.c index cb6252988546..343f7299c783 100644 --- a/drivers/pci/intr_remapping.c +++ b/drivers/pci/intr_remapping.c | |||
@@ -275,28 +275,6 @@ int set_irte_irq(int irq, struct intel_iommu *iommu, u16 index, u16 subhandle) | |||
275 | return 0; | 275 | return 0; |
276 | } | 276 | } |
277 | 277 | ||
278 | int clear_irte_irq(int irq, struct intel_iommu *iommu, u16 index) | ||
279 | { | ||
280 | struct irq_2_iommu *irq_iommu; | ||
281 | unsigned long flags; | ||
282 | |||
283 | spin_lock_irqsave(&irq_2_ir_lock, flags); | ||
284 | irq_iommu = valid_irq_2_iommu(irq); | ||
285 | if (!irq_iommu) { | ||
286 | spin_unlock_irqrestore(&irq_2_ir_lock, flags); | ||
287 | return -1; | ||
288 | } | ||
289 | |||
290 | irq_iommu->iommu = NULL; | ||
291 | irq_iommu->irte_index = 0; | ||
292 | irq_iommu->sub_handle = 0; | ||
293 | irq_2_iommu(irq)->irte_mask = 0; | ||
294 | |||
295 | spin_unlock_irqrestore(&irq_2_ir_lock, flags); | ||
296 | |||
297 | return 0; | ||
298 | } | ||
299 | |||
300 | int modify_irte(int irq, struct irte *irte_modified) | 278 | int modify_irte(int irq, struct irte *irte_modified) |
301 | { | 279 | { |
302 | int rc; | 280 | int rc; |
@@ -328,31 +306,6 @@ int modify_irte(int irq, struct irte *irte_modified) | |||
328 | return rc; | 306 | return rc; |
329 | } | 307 | } |
330 | 308 | ||
331 | int flush_irte(int irq) | ||
332 | { | ||
333 | int rc; | ||
334 | int index; | ||
335 | struct intel_iommu *iommu; | ||
336 | struct irq_2_iommu *irq_iommu; | ||
337 | unsigned long flags; | ||
338 | |||
339 | spin_lock_irqsave(&irq_2_ir_lock, flags); | ||
340 | irq_iommu = valid_irq_2_iommu(irq); | ||
341 | if (!irq_iommu) { | ||
342 | spin_unlock_irqrestore(&irq_2_ir_lock, flags); | ||
343 | return -1; | ||
344 | } | ||
345 | |||
346 | iommu = irq_iommu->iommu; | ||
347 | |||
348 | index = irq_iommu->irte_index + irq_iommu->sub_handle; | ||
349 | |||
350 | rc = qi_flush_iec(iommu, index, irq_iommu->irte_mask); | ||
351 | spin_unlock_irqrestore(&irq_2_ir_lock, flags); | ||
352 | |||
353 | return rc; | ||
354 | } | ||
355 | |||
356 | struct intel_iommu *map_hpet_to_ir(u8 hpet_id) | 309 | struct intel_iommu *map_hpet_to_ir(u8 hpet_id) |
357 | { | 310 | { |
358 | int i; | 311 | int i; |