Commit 697dca94 authored by Rusty Russell's avatar Rusty Russell Committed by Justin T. Gibbs

[PATCH] UP cpu_possible

This patch defines cpu_possible() for non-SMP.
parent b0538e0e
...@@ -91,9 +91,10 @@ int cpu_up(unsigned int cpu); ...@@ -91,9 +91,10 @@ int cpu_up(unsigned int cpu);
static inline void smp_send_reschedule(int cpu) { } static inline void smp_send_reschedule(int cpu) { }
static inline void smp_send_reschedule_all(void) { } static inline void smp_send_reschedule_all(void) { }
#define cpu_online_map 1 #define cpu_online_map 1
#define cpu_online(cpu) ({ cpu; 1; }) #define cpu_online(cpu) ({ BUG_ON((cpu) != 0); 1; })
#define num_online_cpus() 1 #define num_online_cpus() 1
#define num_booting_cpus() 1 #define num_booting_cpus() 1
#define cpu_possible(cpu) ({ BUG_ON((cpu) != 0); 1; })
struct notifier_block; struct notifier_block;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment