Merge branch 'linus' into x86/xen
This commit is contained in:
@@ -80,3 +80,11 @@ void iommu_area_free(unsigned long *map, unsigned long start, unsigned int nr)
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL(iommu_area_free);
|
||||
|
||||
unsigned long iommu_num_pages(unsigned long addr, unsigned long len)
|
||||
{
|
||||
unsigned long size = roundup((addr & ~PAGE_MASK) + len, PAGE_SIZE);
|
||||
|
||||
return size >> PAGE_SHIFT;
|
||||
}
|
||||
EXPORT_SYMBOL(iommu_num_pages);
|
||||
|
@@ -15,7 +15,6 @@
|
||||
#include <linux/module.h>
|
||||
|
||||
static DEFINE_SPINLOCK(ratelimit_lock);
|
||||
static unsigned long flags;
|
||||
|
||||
/*
|
||||
* __ratelimit - rate limiting
|
||||
@@ -26,6 +25,8 @@ static unsigned long flags;
|
||||
*/
|
||||
int __ratelimit(struct ratelimit_state *rs)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
||||
if (!rs->interval)
|
||||
return 1;
|
||||
|
||||
|
@@ -11,7 +11,6 @@ notrace unsigned int debug_smp_processor_id(void)
|
||||
{
|
||||
unsigned long preempt_count = preempt_count();
|
||||
int this_cpu = raw_smp_processor_id();
|
||||
cpumask_of_cpu_ptr_declare(this_mask);
|
||||
|
||||
if (likely(preempt_count))
|
||||
goto out;
|
||||
@@ -23,9 +22,7 @@ notrace unsigned int debug_smp_processor_id(void)
|
||||
* Kernel threads bound to a single CPU can safely use
|
||||
* smp_processor_id():
|
||||
*/
|
||||
cpumask_of_cpu_ptr_next(this_mask, this_cpu);
|
||||
|
||||
if (cpus_equal(current->cpus_allowed, *this_mask))
|
||||
if (cpus_equal(current->cpus_allowed, cpumask_of_cpu(this_cpu)))
|
||||
goto out;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user