mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-01 07:42:18 +00:00
84ba5b15ac
* Enhance GPIO addon for Noctua Fans for the Qortector upcoming case. This will put PWM signal to real-time. * Fixed RDP not letting a user login if not logged out on Cinnamon release (reported by Crowetic) * Update i2c sensor db * Fixed DRM broadcast over HDMI 2+ * Ease up DHCP security only to prevent Brooklyn blocking routers. * Add possibility to add extra memory for Cinnamon Desktop Release * Fix error message of Software Render mode on Cinnamon Desktop * Add proper offset for HD screens for pixel array *Fixed HDMI jitter for videocore4 GPU * Enable all radios (including Bluetooth)
52 lines
991 B
C
52 lines
991 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_ALPHA_TOPOLOGY_H
|
|
#define _ASM_ALPHA_TOPOLOGY_H
|
|
|
|
#include <linux/smp.h>
|
|
#include <linux/threads.h>
|
|
#include <linux/numa.h>
|
|
#include <asm/machvec.h>
|
|
|
|
#ifdef CONFIG_NUMA
|
|
static inline int cpu_to_node(int cpu)
|
|
{
|
|
int node;
|
|
|
|
if (!alpha_mv.cpuid_to_nid)
|
|
return 0;
|
|
|
|
node = alpha_mv.cpuid_to_nid(cpu);
|
|
|
|
#ifdef DEBUG_NUMA
|
|
BUG_ON(node < 0);
|
|
#endif
|
|
|
|
return node;
|
|
}
|
|
|
|
extern struct cpumask node_to_cpumask_map[];
|
|
/* FIXME: This is dumb, recalculating every time. But simple. */
|
|
static const struct cpumask *cpumask_of_node(int node)
|
|
{
|
|
int cpu;
|
|
|
|
if (node == NUMA_NO_NODE)
|
|
return cpu_all_mask;
|
|
|
|
cpumask_clear(&node_to_cpumask_map[node]);
|
|
|
|
for_each_online_cpu(cpu) {
|
|
if (cpu_to_node(cpu) == node)
|
|
cpumask_set_cpu(cpu, node_to_cpumask_map[node]);
|
|
}
|
|
|
|
return &node_to_cpumask_map[node];
|
|
}
|
|
|
|
#define cpumask_of_pcibus(bus) (cpu_online_mask)
|
|
|
|
#endif /* !CONFIG_NUMA */
|
|
# include <asm-generic/topology.h>
|
|
|
|
#endif /* _ASM_ALPHA_TOPOLOGY_H */
|