#ifndef CPUS_H #define CPUS_H #include #include "built_in.h" #include "die.h" static inline unsigned int get_number_cpus(void) { int ret = sysconf(_SC_NPROCESSORS_CONF); if (unlikely(ret <= 0)) panic("get_number_cpus error!\n"); return ret; } static inline unsigned int get_number_cpus_online(void) { int ret = sysconf(_SC_NPROCESSORS_ONLN); if (unlikely(ret <= 0)) panic("get_number_cpus_online error!\n"); return ret; } #endif /* CPUS_H */ ef='http:///git.distanz.ch/cgit.cgi/linux/net-next.git' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2016-04-19 18:28:38 -0700
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-04-27 23:42:57 +0200
commit628e35baa8e1e19217eb11b6ccfa96c273757d18 (patch)
tree0858c0afec8de3e4a33463df967e6b188e6d793c
parentcdd9a6b2a7461021a5ee24bc130592c1bdc54cd8 (diff)
ACPI / amba: Remove CLK_IS_ROOT
This flag is a no-op now (see commit 47b0eeb3dc8a "clk: Deprecate CLK_IS_ROOT", 2016-02-02) so remove it. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Acked-by: Graeme Gregory <graeme.gregory@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>