diff mbox

[v5,1/2] cpumask: export cpumask_any_but

Message ID 1456261152-21907-2-git-send-email-jacob.jun.pan@linux.intel.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Jacob Pan Feb. 23, 2016, 8:59 p.m. UTC
Export cpumask_any_but() for module use. This will be used by drivers
such as intel_rapl to locate an active cpu on a socket.

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
---
 lib/cpumask.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Rusty Russell March 2, 2016, 3:41 a.m. UTC | #1
Jacob Pan <jacob.jun.pan@linux.intel.com> writes:
> Export cpumask_any_but() for module use. This will be used by drivers
> such as intel_rapl to locate an active cpu on a socket.
>
> Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>

Acked-by: Rusty Russell <rusty@rustcorp.com.au>

Thanks!
Rusty.

> ---
>  lib/cpumask.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/lib/cpumask.c b/lib/cpumask.c
> index 5a70f61..81dedaa 100644
> --- a/lib/cpumask.c
> +++ b/lib/cpumask.c
> @@ -41,6 +41,7 @@ int cpumask_any_but(const struct cpumask *mask, unsigned int cpu)
>  			break;
>  	return i;
>  }
> +EXPORT_SYMBOL(cpumask_any_but);
>  
>  /* These are not inline because of header tangles. */
>  #ifdef CONFIG_CPUMASK_OFFSTACK
> -- 
> 1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/lib/cpumask.c b/lib/cpumask.c
index 5a70f61..81dedaa 100644
--- a/lib/cpumask.c
+++ b/lib/cpumask.c
@@ -41,6 +41,7 @@  int cpumask_any_but(const struct cpumask *mask, unsigned int cpu)
 			break;
 	return i;
 }
+EXPORT_SYMBOL(cpumask_any_but);
 
 /* These are not inline because of header tangles. */
 #ifdef CONFIG_CPUMASK_OFFSTACK